Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.73k stars 194 forks source link

修复eventloop中令人疑惑的注释 #124

Closed zbh255 closed 2 years ago

zbh255 commented 2 years ago

事件循环中这个注释写的是修改为写就绪事件,但是看poller里面是修改为读就绪事件。 从API的描述看来也是注册读事件的意思。 https://github.com/Allenxuxu/gev/blob/3ac80c576172d936be56d3151c5aed25fb6d837a/poller/epoll.go#L128-L131 https://github.com/Allenxuxu/gev/blob/3ac80c576172d936be56d3151c5aed25fb6d837a/poller/kqueue.go#L110-L124