diff options
| author | Chris McDonough <chrism@plope.com> | 2014-05-16 15:19:58 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2014-05-16 15:19:58 -0400 |
| commit | 106b196dae40b0c49f3138d0fd2ffe0ff130a58d (patch) | |
| tree | df0f4a431f6ecfffaab4011e1bc81a3901db7fe8 /waitress | |
| parent | 2269e13ff71a66de1f1b69ce096b65a055654487 (diff) | |
| download | waitress-fix.filewrapper_leak.tar.gz | |
add note to changes, expand commentfix.filewrapper_leak
Diffstat (limited to 'waitress')
| -rw-r--r-- | waitress/task.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/waitress/task.py b/waitress/task.py index 8dbb872..28c91c7 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -393,7 +393,11 @@ class WSGITask(Task): if app_iter.__class__ is ReadOnlyFileBasedBuffer: # NB: do not put this inside the below try: finally: which closes - # the app_iter; we need to defer closing the underlying file + # the app_iter; we need to defer closing the underlying file. It's + # intention that we don't want to call ``close`` here if the + # app_iter is a ROFBB; the buffer (and therefore the file) will + # eventually be closed within channel.py's _flush_some or + # handle_close instead. cl = self.content_length size = app_iter.prepare(cl) if size: |
