瀏覽代碼

check closed state after ssl handshake

walkor 6 年之前
父節點
當前提交
e23ffda31b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {