فهرست منبع

fix stream_socket_get_name args missing

walkor 10 سال پیش
والد
کامیت
2cdc44148b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Connection/AsyncTcpConnection.php

+ 1 - 1
Connection/AsyncTcpConnection.php

@@ -123,7 +123,7 @@ class AsyncTcpConnection extends TcpConnection
             // 标记状态为连接已经建立
             $this->_status = self::STATUS_ESTABLISH;
             // 获得远端实际ip端口
-            $this->_remoteAddress = stream_socket_get_name();
+            $this->_remoteAddress = stream_socket_get_name($this->_socket, true);
             // 如果有设置onConnect回调,则执行
             if($this->onConnect)
             {