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';