Artifacts Associated With Ticket 478565ffffffffffffffffffffffffffffffffff
Ticket change [7e32896b18] (rid 97363) by nobody on 2001-11-06 05:25:50:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On Windows NT 4.0 SP6a with Tcl 8.3.2, using fconfigure -sockname on a server socket can cause a 10-20 second delay depending upon the system configuration. The following code snippet illustrates the behavior: proc ServerAccept { cid addr port } { return } set sock [socket -server ServerAccept 0] puts "socket: $sock" set data [fconfigure $sock -sockname] puts "DATA: $data" fconfigure -sockname triggers a call to gethostbyaddr() on the local IP address, 0.0.0.0 in this case. On NT 4.0 (but not Windows 2000 or UNIX), this leads to a 10-20 second delay while the gethostbyaddr() call times out. Although this is actually an NT issue and not a Tcl one, a simple workaround in the Tcl code would be to avoid the gethostbyaddr() call if the IP address is 0.0.0.0 on NT 4.0. A workaround for the end user with the current code is to add a line to c:\winnt\system32\drivers\etc\hosts: 0.0.0.0 0.0.0.0 - foundin initialized to: "obsolete: 8.3.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "24. Channel Commands"
- title initialized to: "fconfigure -sockname performance issue"
- type initialized to: "Bug"
Ticket change [f9e748d5e1] (rid 91775) by nobody on 2001-11-26 05:19:10:
- icomment:
Logged In: NO This bug exist in Windows 98 and Tcl 8.3.4. Delay is ~16 seconds per [fconfigure -sockname sock???]. Adding 0.0.0.0 0.0.0.0 in hosts.sam not resolve problem.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [c6d4f9b67c] (rid 121835) by dkf on 2001-11-26 20:31:34:
- icomment:
Logged In: YES user_id=79902 It should be pretty trivial to detect '0.0.0.0' for ourselves and skip the name lookup in that case (it's not an address that should map to any particular name anyway.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d59933960b] (rid 123649) by andreas_kupries on 2001-12-12 02:20:05:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=75003 Enclosed is a tentative patch which compiles and passes the testsuite. As my system is Win/2K I cannot check if the patch truly solves the problem for Win/NT. Assigning to Donal now for a quick lookover.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "andreas_kupries"
Ticket change [9332995d96] (rid 105776) by andreas_kupries on 2001-12-12 02:20:06:
- icomment:
File Added - 14522: 478565.diff
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Add attachment "478565.diff" [41b8fd04b3] (rid 116237) by andreas_kupries on 2001-12-12 02:20:06.
Ticket change [e6e358a1c2] (rid 104367) by dkf on 2001-12-13 21:55:36:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=79902 Looks OK to me; "Make It So!"
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [1244210d07] (rid 95281) by andreas_kupries on 2001-12-14 01:07:47:
- closedate changed to: "2001-12-13T18:07:47"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Committed to head.
- login: "andreas_kupries"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "andreas_kupries"