walkor %!s(int64=10) %!d(string=hai) anos
pai
achega
6bce7f8739
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Workerman/Connection/TcpConnection.php

+ 2 - 2
Workerman/Connection/TcpConnection.php

@@ -311,7 +311,7 @@ class TcpConnection extends ConnectionInterface
                        echo $e;
                    }
                }
-               if(feof($socket))
+               if($this->_status !== self::STATUS_CLOSED && feof($socket))
                {
                    $this->destroy();
                    return;
@@ -330,7 +330,7 @@ class TcpConnection extends ConnectionInterface
                echo $e;
            }
            $this->_recvBuffer = '';
-           if(feof($socket))
+           if($this->_status !== self::STATUS_CLOSED && feof($socket))
            {
                $this->destroy();
                return;