Skip to content
New issue

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

epoll和ssl #1

Open
choury opened this issue Dec 5, 2014 · 0 comments
Open

epoll和ssl #1

choury opened this issue Dec 5, 2014 · 0 comments

Comments

@choury
Copy link
Owner

choury commented Dec 5, 2014

我发现如果用了SSL系列的read和write,和LT模式的epoll,如果读事件到达以后没有把所有数据都读完,那么在下一次数据来之前都不会有新事件,epoll表现的和ET模式一样,网上查了查才发现,这是由于SSL_read会缓存数据,虽然我这里没把数据读完,但是数据其实已经被ssl读完了,所以就不会再触发事件了,因此,这种情况要按照ET模式处理

@choury choury closed this as completed Dec 5, 2014
@choury choury reopened this Dec 5, 2014
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

No branches or pull requests

1 participant