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

IOStream doesn't detect remote hang up when _Select is used #37

Closed
sris opened this issue Nov 12, 2009 · 1 comment
Closed

IOStream doesn't detect remote hang up when _Select is used #37

sris opened this issue Nov 12, 2009 · 1 comment

Comments

@sris
Copy link

sris commented Nov 12, 2009

iostream.py provides a way to set a callback that should be invoked when a connection is closed. When using _Select this callback won't be invoked until a read or write is performed on the socket.

Select signals remote hang-ups by creating a read event with 0 byte length. This won't be noticed by iostream's _handle_event when a connection is idle since it only subscribes to io_loop.ERROR events.

This works fine with epoll since epoll with emit a HUP event that will get noticed.

@bdarnell
Copy link
Member

In the select()-based IOLoop, always listen for reads so we can tell
when the other side closed the connection.

Closed by 1221865.

eklitzke pushed a commit to eklitzke/tornado that referenced this issue Jun 12, 2011
This issue was closed.
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

2 participants