Skip to content

Commit

Permalink
修复Socket事件触发跑飞问题
Browse files Browse the repository at this point in the history
ZLMediaKit/ZLMediaKit#2946

Socket对象在对fd进行epoll/select操作时,此fd可能已经被关闭并被其他Socket对象复用并持有,
这将导致fd事件紊乱跑飞。现通过SocketNum对象捕获实现fd生命周期与事件监听周期的绑定,
防止socket已经被关闭(并被其他Socket对象复用)但还被添加或修改事件。
  • Loading branch information
xia-chu committed Nov 9, 2023
1 parent 9331000 commit 97871cf
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 123 deletions.
Loading

0 comments on commit 97871cf

Please sign in to comment.