mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
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()
|
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);
|
$this->connection = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
|
||||||
if (! @socket_connect($this->connection, $this->socket_host, $this->socket_port)) {
|
if (! @socket_connect($this->connection, $this->socket_host, $this->socket_port)) {
|
||||||
throw new IcingaException(
|
throw new IcingaException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user