We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
哈喽, 我想问一下, 在websocket握手的时候,禁用调用libevent 的EV_READ选项, 如果这个时候客户端断掉连接, 应该不能及时的关闭掉连接, 并且 bufferevent_write向一个关闭的fd去写,也是不会触发异常的,这样连接对应的bufferevent是不是就释放不掉了呢?
The text was updated successfully, but these errors were encountered:
对的,是有这个可能。 代码年代久远,为啥先disable握手完成后再enable,原因也记不清了,可能要处理当时遇到的某个问题吧。 但现在来看处理方式不太对,感觉通过握手状态来控制具体的读写会更好些。
Sorry, something went wrong.
No branches or pull requests
哈喽, 我想问一下, 在websocket握手的时候,禁用调用libevent 的EV_READ选项, 如果这个时候客户端断掉连接, 应该不能及时的关闭掉连接, 并且 bufferevent_write向一个关闭的fd去写,也是不会触发异常的,这样连接对应的bufferevent是不是就释放不掉了呢?
The text was updated successfully, but these errors were encountered: