[issue12502] 100% cpu usage when using asyncore with UNIX socket

2013-02-01 Thread Benjamin Ash
Benjamin Ash added the comment: Hi, I am still seeing this issue even with the patches applied. I see 100% CPU utilization, and strace shows the process is in same kind of select() loop as msg139899. Any help would be greatly appreciated. Thanks, -ben strace output: """ se

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2013-02-04 Thread Benjamin Ash
Benjamin Ash added the comment: Hi Charles-François, I am using a recent version of Python-2.7 that does in fact contains this patch http://hg.python.org/cpython/rev/16bc59d37866: python-2.7.3-4.fc16.x86_64 (Fedora 16) The CPU usage spikes after I make the initial client connection to the

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2013-02-04 Thread Benjamin Ash
Benjamin Ash added the comment: After doing a bit more testing, I was able to prevent the problem from occurring in asyncore_test.py with the following patch: --- /proc/self/fd/112013-02-04 11:24:41.298347199 -0500 +++ asyncore_test.py2013-02-04 11:24:40.393318513 -0500 @@ -19,10

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2013-02-04 Thread Benjamin Ash
Benjamin Ash added the comment: Ok, thanks for quick followup. I didn't realize that the patch for Python-3, sorry about that. The issue I had was due to never calling self.listen() in the constructor of my server (asyncore.dispatcher). If this is not done the CPU spikes to 100%. T