Tcl Source Code

View Ticket
Login
Ticket UUID: 574618
Title: Make http::geturl not block for connect
Type: Patch Version: None
Submitter: dchapes Created on: 2002-06-27 15:06:57
Subsystem: 29. http Package Assigned To: aku
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2022-08-28 18:59:37
Resolution: Fixed Closed By: kjnash
    Closed on: 2022-08-28 18:59:37
Description:
http::geturl with the -command option claims to return 
immediatly without blocking.  However it does block for 
connect.  This patch removes this unwanted behaviour.

This patch also includes my patch in tracker item 
559898 since the patches have some overlap.  That 
patch adds a -myaddr option that gets passed to the 
socket command.
User Comments: kjnash added on 2022-08-28 18:59:37:
Previously the socket was opened with -async iff {$state(-timeout) > 0}.

The patch uses -async in all cases.

This fix was applied in http.tcl file [c79cd9e6f8] of check-in: [b242bb3e4b] dated 2013-01-23 14:04.

"Fix [2911139]: connect asynchronously, but without unnecessary internal waits."

dchapes added on 2002-06-27 22:28:42:

File Added - 25934: patch

Attachments: