Explorar o código

Update AsyncUdpConnection.php

walkor %!s(int64=7) %!d(string=hai) anos
pai
achega
f7c1797bc7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Connection/AsyncUdpConnection.php

+ 3 - 0
Connection/AsyncUdpConnection.php

@@ -185,6 +185,9 @@ class AsyncUdpConnection extends UdpConnection
             Worker::safeEcho(new \Exception($errmsg));
             return;
         }
+        
+        stream_set_blocking($this->_socket, false);
+        
         if ($this->onMessage) {
             Worker::$globalEvent->add($this->_socket, EventInterface::EV_READ, array($this, 'baseRead'));
         }