[New-bugs-announce] [issue35017] socketserver accept a last request after shutdown

Denis Ledoux report at bugs.python.org
Thu Oct 18 07:55:13 EDT 2018


New submission from Denis Ledoux <be.ledoux.denis at gmail.com>:

After the shutdown of a `BaseServer`, the server may accept a last single request if it is 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 can fail because of this behavior.

Note that only one request will fail, following requests will not be accepted, as expected.

----------
components: Library (Lib)
messages: 327969
nosy: beledouxdenis
priority: normal
severity: normal
status: open
title: socketserver accept a last request after shutdown
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35017>
_______________________________________


More information about the New-bugs-announce mailing list