大約是在 Workerman/Connection/TcpConnection.php 的Line 625行左右的幾行代碼:
// Data is not enough for a package.
if ($this->_currentPackageLength > strlen($this->_recvBuffer)) {
break;
}
調(diào)試觀測到:
if($this->_currentPackageLength > 0) $this->_currentPackageLength === strlen($this->_recvBuffer) ,
所以想知道是在什么情況下如下語句是成立的?
if ($this->_currentPackageLength > strlen($this->_recvBuffer)) 謝謝~~