Livestatus\Connection: remove obsolete constant
TCPNODELAY is available in PHP >= 5.3
This commit is contained in:
parent
42efbf0892
commit
140b246974
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue