Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed May 27, 2019
1 parent 6c5a41e commit 42b4187
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ protected function onShutDown()

public function onPipeReadable(Process $process)
{

/*
* 由于Swoole底层使用了epoll的LT模式,因此swoole_event_add添加的事件监听,
* 在事件发生后回调函数中必须调用read方法读取socket中的数据,否则底层会持续触发事件回调。
*/
$process->read();
}
}

0 comments on commit 42b4187

Please sign in to comment.