大约是在 Workerman/Connection/TcpConnection.php 的Line 625行左右的几行代码:
// Data is not enough for a package.
if ($this->_currentPackageLength > strlen($this->_recvBuffer)) {
break;
}
调试观测到:
if($this->_currentPackageLength > 0) $this->_currentPackageLength === strlen($this->_recvBuffer) ,
所以想知道是在什么情况下如下语句是成立的?
if ($this->_currentPackageLength > strlen($this->_recvBuffer)) 谢谢~~
当客户端发送的数据很大时,比如发送一个10M的数据包