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
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