Livestatus\Connection: remove obsolete constant

TCPNODELAY is available in PHP >= 5.3
This commit is contained in:
Thomas Gelf 2014-11-16 17:58:56 +01:00
parent 42efbf0892
commit 140b246974
1 changed files with 0 additions and 5 deletions

View File

@ -365,11 +365,6 @@ if ($col > $size - 1) return $res;
protected function establishTcpConnection()
{
// TODO: find a bedder place for this
if (! defined('TCP_NODELAY')) {
define('TCP_NODELAY', 1);
}
$this->connection = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (! @socket_connect($this->connection, $this->socket_host, $this->socket_port)) {
throw new IcingaException(