diff options
| author | Martin Panter <vadmium+py@gmail.com> | 2016-02-18 10:43:55 (GMT) |
|---|---|---|
| committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-18 10:43:55 (GMT) |
| commit | ba8474b77dd86d8dde40eaa7a4a6715a476d6242 (patch) | |
| tree | 7b87c2188df2894c8789c1b7a3a9a24ff295e079 /Lib/SocketServer.py | |
| parent | 51b13e53fcd0dfc0fbaa2be9cab7814e5f98233e (diff) | |
| download | cpython-ba8474b77dd86d8dde40eaa7a4a6715a476d6242.zip cpython-ba8474b77dd86d8dde40eaa7a4a6715a476d6242.tar.gz cpython-ba8474b77dd86d8dde40eaa7a4a6715a476d6242.tar.bz2 | |
Issue #26309: Shut down SocketServer request if verify_request() is false
Based on patch by Aviv Palivoda.
Diffstat (limited to 'Lib/SocketServer.py')
| -rw-r--r-- | Lib/SocketServer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 33f7fb4..80130b7 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -296,6 +296,8 @@ class BaseServer: except: self.handle_error(request, client_address) self.shutdown_request(request) + else: + self.shutdown_request(request) def handle_timeout(self): """Called if no new request arrives within self.timeout. |
