Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-01
01:47 • Ticket [218526ffff] socket -async problem on Win32 status still Closed with ... artifact: 0acf4f535f user: dgp
2000-10-26
08:24 • Closed ticket [218526ffff]. artifact: 400c88479b user: welch
01:01 • New ticket [218526ffff]. artifact: 4a43df8864 user: nobody

socket -async problem on Win32

Closed / Fixed218526ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:43
OriginalBugID: 893 Bug
Version: 8.0.4
SubmitDate: '1998-12-03'
LastModified: '1999-02-02'
Severity: MED
Status: Released
Submitter: welch
ChangedBy: stanton
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-02-02'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


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
welch Closed ticket [218526ffff]. [History diff]2000-10-26 08:24:12
dgp Ticket [218526ffff]: 3 changes [History diff]2001-04-01 01:47:51
Log in (anonymous is fine) to add a comment.