walkor 8 年之前
父节点
当前提交
cb055aff51
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Connection/AsyncTcpConnection.php

+ 3 - 2
Connection/AsyncTcpConnection.php

@@ -277,8 +277,9 @@ class AsyncTcpConnection extends TcpConnection
             if ($this->_sendBuffer) {
                 Worker::$globalEvent->add($socket, EventInterface::EV_WRITE, array($this, 'baseWrite'));
             }
-            $this->_status        = self::STATUS_ESTABLISH;
-            $this->_remoteAddress = $address;
+            $this->_status                = self::STATUS_ESTABLISH;
+            $this->_remoteAddress         = $address;
+            $this->_sslHandshakeCompleted = true;
 
             // Try to emit onConnect callback.
             if ($this->onConnect) {