[icinga-checkins] icinga.org: icingaweb2/feature/livestatus-playground-4787: Livestatus\Connection: remove obsolete constant

git at icinga.org git at icinga.org
Sun Nov 16 18:04:25 CET 2014


Module: icingaweb2
Branch: feature/livestatus-playground-4787
Commit: 140b2469749d497428cf8ffb8e5c49d6f1c897f8
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=140b2469749d497428cf8ffb8e5c49d6f1c897f8

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 17:58:56 2014 +0100

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 b6dbaa7..bc5db91 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(



More information about the icinga-checkins mailing list