[New-bugs-announce] [issue12502] 100% cpu usage when using asyncore with UNIX socket

Алексей Агапитов report at bugs.python.org
Tue Jul 5 19:25:37 CEST 2011

New submission from Алексей Агапитов <marwinxxii at gmail.com>:

When using asyncore server with UNIX socket, I got 100% CPU usage.
I run modified code example from asyncore doc page.
This code was tested on two systems:

Ubuntu 10.04 2.6.32-32-generic #62-Ubuntu SMP

with two versions of Python:
Python 3.2 (r32:88445, Mar 29 2011, 08:55:36)

Python 3.2.1rc2 (default, Jul  5 2011, 20:33:19) Built from sources

Gentoo 2.6.36-hardened-r9 #6 SMP

with Python 3.1.3 (r313:86834, Mar 12 2011, 20:06:24)

I'm not sure, maybe it's because of the characteristics of UNIX socket?

components: Library (Lib)
files: asyncore_test.py
messages: 139898
nosy: Alexey.Agapitov
priority: normal
severity: normal
status: open
title: 100% cpu usage when using asyncore with UNIX socket
type: resource usage
versions: Python 3.2
Added file: http://bugs.python.org/file22585/asyncore_test.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list