From 140b2469749d497428cf8ffb8e5c49d6f1c897f8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 16 Nov 2014 17:58:56 +0100 Subject: [PATCH] Livestatus\Connection: remove obsolete constant TCPNODELAY is available in PHP >= 5.3 --- library/Icinga/Protocol/Livestatus/Connection.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/Icinga/Protocol/Livestatus/Connection.php b/library/Icinga/Protocol/Livestatus/Connection.php index b6dbaa7e6..bc5db91ec 100644 --- a/library/Icinga/Protocol/Livestatus/Connection.php +++ b/library/Icinga/Protocol/Livestatus/Connection.php @@ -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(