我使用的是windows版本.
function forexample()
{
$connection->send($something);
}
這樣時(shí)正常,VPS上測(cè)試,接收延遲10ms
function forexample()
{
$connection->send($something);
$connection->send($something);
}
這樣時(shí)效率就嚴(yán)重降低,第二個(gè)包延遲200~300ms
這該怎么解決呢?
https://github.com/walkor/workerman-for-win
重新更新下winows版本試下。
windows版本沒(méi)關(guān)閉TCP Nagle算法,