Procházet zdrojové kódy

check closed state after ssl handshake

walkor před 6 roky
rodič
revize
e23ffda31b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Connection/TcpConnection.php

+ 1 - 1
Connection/TcpConnection.php

@@ -777,7 +777,7 @@ class TcpConnection extends ConnectionInterface
             return false;
         } elseif (0 === $ret) {
             // There isn't enough data and should try again.
-            return false;
+            return 0;
         }
         if (isset($this->onSslHandshake)) {
             try {