[Patches] [ python-Patches-611464 ] asyncore dies on Windows

noreply@sourceforge.net noreply@sourceforge.net
Thu, 19 Sep 2002 00:44:44 -0700


Patches item #611464, was opened at 2002-09-19 09:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=611464&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Nobody/Anonymous (nobody)
Summary: asyncore dies on Windows

Initial Comment:
On windows, select.select raises select.error(2, 'No 
such file or directory) if called with 3 empty lists.
This is not caught in asyncore's loop.

The attached patch fixes this by simply ignoring the 
exception (2 is ENOENT) in the same way as is done 
for EINTR already.

It may be argued that it would be better to catch this 
exception in the select implementation on Windows 
itself...

IMO this is also a bugfix candidate for 2.2 and 2.1.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=611464&group_id=5470