Skip to content

Conversation

@cc004
Copy link

@cc004 cc004 commented Aug 23, 2024

在threadDispatcherEnabled时,由于使用抢先式调度,会导致socketpair在其中一个线程在接收时,持续占用调度,导致永远无法接收到发送线程的信息。

同理,由于ppoll没有考虑io是否有信息可读,会导致线程持续卡死在后接的recv中,导致实际运行逻辑与实际不符,同时如果其他线程正在同一socket准备发送请求,也会造成死锁。

详细样例可见本fork的master分支

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant