Sfoglia il codice sorgente

Update TcpConnection.php

walkor 10 anni fa
parent
commit
b1ef92cdf3
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Connection/TcpConnection.php

+ 2 - 1
Connection/TcpConnection.php

@@ -449,7 +449,8 @@ class TcpConnection extends ConnectionInterface
                    // 包错误
                    else
                    {
-                       $this->close('error package. package_length='.var_export($this->_currentPackageLength, true));
+                       echo 'error package. package_length='.var_export($this->_currentPackageLength, true);
+                       $this->destroy();
                        return;
                    }
                }