You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2019. It is now read-only.
看源码的时候,总觉得/Coroutine/Scheduler.php和Coroutine/Task.php有bug,
于是进行了测试,为了测试方便,我把worker_num设置为1;
我在测试的控制器里有两个action。分别为action1和action2
action1为慢速的请求,一般需要2s才能回数据
action2响应比较快,都在几毫秒内完成。
我用两个客户端先后访问action1和action2,action2能返回数据,但是action1则卡着不动,一直没有响应。
原因应该是Coroutine/Task.php里处理异步io的时候,直接return,处理下一个请求;当慢请求有数据返回的时候需要进行回调,但是Coroutine/Scheduler.php里的run方法的task对象已经被销毁了,无法给客户端返回数据。
The text was updated successfully, but these errors were encountered: