https://github.com/python/cpython
Revision c20391849996655268aec8c57e4adaaddb789d4e authored by Denis Ledoux on 26 October 2018, 13:46:17 UTC, committed by Denis Ledoux on 26 October 2018, 14:36:36 UTC
Prior to this revision, after the shutdown of a `BaseServer`,
the server accepted a last single request
if it was sent between the server socket polling
and the polling timeout.

This can be problematic for instance for a server restart
for which you do not want to interrupt the service,
by not closing the listening socket during the restart.
One request failed because of this behavior.

Note that only one request failed,
following requests were not accepted, as expected.

(cherry picked from commit 10cb3760e8631a27f5db1e51b05494e29306c671)
1 parent 9dcb517
History
Tip revision: c20391849996655268aec8c57e4adaaddb789d4e authored by Denis Ledoux on 26 October 2018, 13:46:17 UTC
bpo-35017, socketserver: don't accept request after shutdown (GH-9952)
Tip revision: c203918
File Mode Size
.github
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 552 bytes
.gitattributes -rw-r--r-- 809 bytes
.gitignore -rw-r--r-- 1.2 KB
.travis.yml -rw-r--r-- 3.8 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 48.1 KB
README -rw-r--r-- 54.4 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 439.1 KB
configure.ac -rw-r--r-- 142.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 35.0 KB
setup.py -rw-r--r-- 98.2 KB

README

back to top