[Python-Dev] Socket/Asyncore bug needs attention (original) (raw)
Tim Peters tim.peters at gmail.com
Mon Sep 27 18:45:35 CEST 2004
- Previous message: [Python-Dev] Socket/Asyncore bug needs attention
- Next message: [Python-Dev] Socket/Asyncore bug needs attention
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Raymond Hettinger]
Anyone who has worked on sockets or asyncore should take a look at SF bug #1010098: CPU usage shoots up with asyncore. Since Py2.3, the behavior changed for the worse. The bug report has been around for about five weeks and doesn't look like it is actively being solved. If you worked on those modules, please review your check-ins to see if they were the cause:
FYI, as I noted in a comment there, I stared at that one long enough to determine that asyncore almost certainly wasn't to blame (despite the OP's natural belief that it must be). Instead something "above" asyncore changed so that a socket always shows up as "ready to write" in 2.4, but hardly ever in 2.3. CPU usage is nailed to 100% as a consequence in 2.4, while in 2.3 asyncore's select() times out instead, consuming almost no CPU.
- Previous message: [Python-Dev] Socket/Asyncore bug needs attention
- Next message: [Python-Dev] Socket/Asyncore bug needs attention
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]