diff options
Diffstat (limited to 'waitress/channel.py')
-rw-r--r-- | waitress/channel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/waitress/channel.py b/waitress/channel.py index 6b80919..a377a54 100644 --- a/waitress/channel.py +++ b/waitress/channel.py @@ -374,7 +374,10 @@ class HTTPChannel(wasyncore.dispatcher, object): except KeyError: pass task = self.error_task_class(self, request) - task.service() # must not fail + try: + task.service() # must not fail + except ClientDisconnected: + task.close_on_finish = True else: task.close_on_finish = True # we cannot allow self.requests to drop to empty til |