Richard Oudkerk added the comment:

> That compiles (after hacking the line endings).  One Tulip test fails, 
> PollEventLooptests.testSockClientFail.  But that's probably because the 
> PollSelector class hasn't been adjusted for Windows yet (need to dig this 
> out of the Pollster code that was deleted when switching to neologix's 
> Selector).

Sorry I did not deal with this earlier.  I can make the modifications to 
PollSelector tommorrow.

Just to describe the horrible hack: every time poll() needs to be called we 
first check if there are any registered async connects.  If so then I first use 
select([], [], connectors) to detect any failed connections, and then use 
poll() normally.

This does mean that to detect failed connections we must never use too large a 
timeout with poll() when there are outstanding connects.  Of course one must 
decide what is an acceptable maximum timeout -- too short and you might damage 
battery life, too long and you will not get prompt notification of failures.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16507>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to