This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mhammond
Recipients
Date 2004-08-03.01:18:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=14198

It is true select does return 1 for either the "can't
connect" or "connected" cases.  In the "connected" case, the
getsockopt() returns 0 - hence the function returns 0, and
WSASetLastError(0) has been called.  ie, as far as I can see
and test, the code works for both success and failure.

However, I do agree that the MS docs don't explicitly state
anywhere that what I am doing is OK, so I'm attaching a new
patch as you suggest, and which also seems to work <wink>
History
Date User Action Args
2007-08-23 14:24:41adminlinkissue1001018 messages
2007-08-23 14:24:41admincreate