gnet
gnet copied to clipboard
🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go.
遇到了不少场景(如:支持PROXY Protocol协议),都需要在连接建立后对首个包进行特殊处理,当然放在协议解析器里面去处理是可以的,但很明显这样每次数据包来的时候都得去判断一下,很不合理,解析器应该只关心业务相关内容才对!!! 翻了一下Issues,发现之前已经有提过这个了, https://github.com/panjf2000/gnet/issues/231#issuecomment-883857897 https://github.com/panjf2000/gnet/issues/231#issuecomment-883990539 pan大佬也说了解决的思路:应该有一个专门的 handler,收到第一个包的时候调用一下就行。。。 这么久过去了,有计划支持吗?
### Actions I've taken before I'm here - [X] I've thoroughly read the documentations about this problem but still have no answer. - [X] I've searched the Github Issues/Discussions but...
When data reading occurs, there is a high probability of data writeback generated in the `OnTraffic`. At this time, it is not necessary to wait for the registration write event...
### Actions I've taken before I'm here - [X] I've thoroughly read the documentations on this issue but still have no clue. - [X] I've searched the Github Issues but...
## 1. Are you opening this pull request for bug-fixes, optimizations or new feature? bug fix ## 2. Please describe how these code changes achieve your intention. There is a...
### Actions I've taken before I'm here - [X] I've thoroughly read the documentations about this problem but still have no answer. - [X] I've searched the Github Issues/Discussions but...