[issue44769] socketserver.shutdown should stop serve_forever() immediately

2021-07-29 Thread Petr Viktorin
Petr Viktorin added the comment: This isn't a high priority for me, but I have a WIP branch in https://github.com/encukou/cpython/tree/http-server-poll Feel free to continue it if you get to it sooner than I do. -- ___ Python tracker

[issue44769] socketserver.shutdown should stop serve_forever() immediately

2021-07-28 Thread Petr Viktorin
New submission from Petr Viktorin : 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