walkor 8 gadi atpakaļ
vecāks
revīzija
cb055aff51
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  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) {