Explorar o código

check closed state on ssl handshake

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

+ 3 - 0
Connection/AsyncTcpConnection.php

@@ -318,6 +318,9 @@ class AsyncTcpConnection extends TcpConnection
             // SSL handshake.
             if ($this->transport === 'ssl') {
                 $this->_sslHandshakeCompleted = $this->doSslHandshake($this->_socket);
+                if ($this->_sslHandshakeCompleted === false) {
+                    return;
+                }
             } else {
                 // There are some data waiting to send.
                 if ($this->_sendBuffer) {