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

ioloop drops the connection because its active time isn't updated for buffered writes #235

Closed
wants to merge 1 commit into from

Conversation

xaka
Copy link

@xaka xaka commented Dec 8, 2011

I'm not sure the "buffer" event is the correct solution, but at least you know what's "wrong". Client sends a request, server parses it, then handles it and writes the response using buffered writes. Buffered writes don't update the active time value so when the next ioloop iteration begins, the connection is being closed.

To reproduce you should run Morbo, set keepalive timeout to 1s and sleep in controller for a longer time. Such timeout is for inactive clients which don't send the requests, but not for inactive (or super-slow) servers. Browsers (clients) have their own timeout for that.

@kraih
Copy link
Member

kraih commented Dec 8, 2011

This is not a bug, buffering does not count as activity on a connection.

@kraih kraih closed this Dec 8, 2011
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

Successfully merging this pull request may close these issues.

None yet

2 participants