From b60158360db097e303d1f3f0a7534645297af2a6 Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Wed, 25 Jan 2017 19:26:28 +0100 Subject: [PATCH] - code clearing... --- app/main/lib/socket.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main/lib/socket.php b/app/main/lib/socket.php index 65000a4e..e3e63b27 100644 --- a/app/main/lib/socket.php +++ b/app/main/lib/socket.php @@ -98,8 +98,6 @@ class Socket { if(self::checkRequirements()){ $context = new \ZMQContext(); $this->socket = $context->getSocket(\ZMQ::SOCKET_PUSH); - // The linger value of the socket. Specifies how long the socket blocks trying flush messages after it has been closed - //$this->socket->setSockOpt(\ZMQ::SOCKOPT_LINGER, 0); } } @@ -121,6 +119,7 @@ class Socket { $this->socket->connect($this->socketUri); $this->socket->send(json_encode($send)); + $this->socket->disconnect($this->socketUri); $response = 'OK';