summaryrefslogtreecommitdiff
path: root/waitress/channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'waitress/channel.py')
-rw-r--r--waitress/channel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/waitress/channel.py b/waitress/channel.py
index c806bee..ca02511 100644
--- a/waitress/channel.py
+++ b/waitress/channel.py
@@ -249,6 +249,8 @@ class HTTPChannel(logging_dispatcher, object):
'Unexpected error when closing an outbuf')
continue # pragma: no cover (coverage bug, it is hit)
else:
+ if hasattr(outbuf, 'prune'):
+ outbuf.prune()
dobreak = True
while outbuflen > 0: