Jim to [email protected]English • 2 years agoCLI tools hidden in the Python standard librarytil.simonwillison.netexternal-linkmessage-square1fedilinkarrow-up12cross-posted to: [email protected]
arrow-up12external-linkCLI tools hidden in the Python standard librarytil.simonwillison.netJim to [email protected]English • 2 years agomessage-square1fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilinkEnglish1•edit-22 years agoIt’s worth noting that the http.server module is based on socketserver.BaseServer.serve_forever, which is a atrocious. It uses a busy loop with a delay, so it both burns CPU and is unresponsive. (The fact that Python has had broken signal handling since 3.5 also hurts - EINTR should never be ignored from blocking calls)
It’s worth noting that the
http.server
module is based onsocketserver.BaseServer.serve_forever
, which is a atrocious.It uses a busy loop with a delay, so it both burns CPU and is unresponsive.
(The fact that Python has had broken signal handling since 3.5 also hurts - EINTR should never be ignored from blocking calls)