[New-bugs-announce] [issue44769] socketserver.shutdown should stop serve_forever() immediately

Petr Viktorin report at bugs.python.org
Wed Jul 28 17:32:39 EDT 2021


New submission from Petr Viktorin <encukou at gmail.com>:

Currently, socketserver.serve_forever() sets a variable and serve_forever() polls for it, with a configurable interval.

A comment in the code already says:
# XXX: Consider using another file descriptor or connecting to the
# socket to wake this up instead of polling. Polling reduces our
# responsiveness to a shutdown request and wastes cpu at all other
# times.

----------
components: Library (Lib)
messages: 398427
nosy: petr.viktorin
priority: normal
severity: normal
status: open
title: socketserver.shutdown should stop serve_forever()  immediately

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


More information about the New-bugs-announce mailing list