OriginalBugID: 893 Bug
I ran into a problem when doing an asynchronous connect on Windows.
If the connect fails, you never get notified that the connect failed.
The problem is that FD_CONNECT is not watched for.
I also added a small feature to help with asynchronous connects. Once
the connect fails, there was no reasonable way to tell that it failed
or to get an error message. You could determine that the connect failed
(on Unix only before the fix) by trying to write a 0 byte string to the
socket, and it would fail if the connect failed. However, you still
couldn't tell why the connect failed. I added a fconfigure option that
will give the status of the connect.
fconfigure sockid -error
will return an error string representing the error condition. If there
was no error condition, this will return an empty string. Here is the
patch for both things.
Patch on the web