walkor 3 年 前
コミット
b7c5da2a45

+ 1 - 1
src/Connection/AsyncUdpConnection.php

@@ -181,7 +181,7 @@ class AsyncUdpConnection extends UdpConnection
         \stream_set_blocking($this->_socket, false);
 
         if ($this->onMessage) {
-            Worker::$globalEvent->add($this->_socket, EventInterface::EV_READ, [$this, 'baseRead']);
+            Worker::$globalEvent->onWritable($this->_socket, [$this, 'baseRead']);
         }
         $this->connected = true;
         // Try to emit onConnect callback.

+ 1 - 1
src/Connection/UdpConnection.php

@@ -210,7 +210,7 @@ class UdpConnection extends ConnectionInterface implements \JsonSerializable
     /**
      * Get the json_encode informattion.
      *
-     * @return string
+     * @return array
      */
     public function jsonSerialize()
     {

+ 1 - 1
src/Protocols/Http/Session.php

@@ -318,7 +318,7 @@ class Session
      */
     public function refresh()
     {
-        static::$_handler->updateTimestamp($this->getId());
+        return static::$_handler->updateTimestamp($this->getId());
     }
 
     /**