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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 19 Sep 2002 01:09:34 -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.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-09-19 10:09

Message:
Logged In: YES 
user_id=21627

I would indeed argue that select should behave uniformly in
this case. On Unix, it blocks until there is a timeout, or
until a signal occurs. Can you come up with a patch that
does the same on Windows?

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

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