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

Fix bug where Twiggy's run loop exits after a streaming request is cut off #41

Merged
merged 2 commits into from Jan 3, 2015

Conversation

hoelzro
Copy link
Contributor

@hoelzro hoelzro commented Apr 29, 2014

Hello,

I found a bug in Twiggy where if you're using a streaming writer and the client stops the request, the PSGI application dies in such a way that Twiggy itself shuts down. A test file and fix are included. The fix isn't the cleanest, but maybe it's a starting point you could improve upon!

-Rob

Twiggy (as of version 0.1024) shuts down after servicing
a request that writes streaming contents to a PSGI writer, and
the connection is broken.
@hoelzro
Copy link
Contributor Author

hoelzro commented May 30, 2014

@miyagawa Have you had a chance to look at this?

@hoelzro
Copy link
Contributor Author

hoelzro commented Jan 3, 2015

@miyagawa If you have time, would you mind taking a look at this change?

miyagawa added a commit that referenced this pull request Jan 3, 2015
Fix bug where Twiggy's run loop exits after a streaming request is cut off
@miyagawa miyagawa merged commit a590fff into miyagawa:master Jan 3, 2015
@miyagawa
Copy link
Owner

miyagawa commented Jan 3, 2015

sorry that it's taken such a long time. I don't really understand the fix, but sounds trivial enough to merge.

@hoelzro
Copy link
Contributor Author

hoelzro commented Jan 3, 2015

No problem, I had forgotten about it myself. Thanks!

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