Skip to content

Commit

Permalink
close asap when pool full
Browse files Browse the repository at this point in the history
  • Loading branch information
morucci committed Jun 2, 2020
1 parent d54ccce commit 2103191
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cheroot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ def read_request_headers(self):
if self.inheaders.get(b'Connection', b'') != b'Keep-Alive':
self.close_connection = True

if not self.server.connections.can_add_keepalive_connection:
self.close_connection = True

# Transfer-Encoding support
te = None
if self.response_protocol == 'HTTP/1.1':
Expand Down

0 comments on commit 2103191

Please sign in to comment.