SIGN IN SIGN UP

bpo-35017, socketserver: don't accept request after shutdown (GH-9952)

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.
D
Denis Ledoux committed
10cb3760e8631a27f5db1e51b05494e29306c671
Parent: 25a525b
Committed by Victor Stinner <vstinner@redhat.com> on 10/26/2018, 1:46:17 PM