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

WSGI middleware should call "close" on iterable if available #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kstark
Copy link

@kstark kstark commented Dec 4, 2015

This was causing issues with our instrumentation.

It wasn't 100% clear to me how to handle close raising an exception, so I think there's a chance that abort might be called twice.

@tseaver
Copy link
Member

tseaver commented Jun 3, 2016

Thanks for the patch! Could you add a unit test showing that the iterable gets 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

Successfully merging this pull request may close these issues.

2 participants