Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [548227ffff] socket-2.6 can hang status still Closed with 3 other cha... artifact: ac0247a70e user: serhiy.storchaka
2026-10-12
11:43 • Closed ticket [548227ffff]. artifact: 7426f9b111 user: serhiy.storchaka
11:43 • Ticket [548227ffff]: 3 changes artifact: 1ac9736119 user: serhiy.storchaka
2002-04-24
17:20 • New ticket [548227ffff]. artifact: fd04eb5243 user: dgp

socket-2.6 can hang

Closed / Fixed548227ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 42 days ago
Descriptionplain2002-04-24 17:20:11
I've seen test socket-2.6 block forever on the
[gets].  This apparently happens when there
just happens to be a service on port 2833
which accepts connections, but does not send
anything back.

Could be that the hard-coded "2833" port value
is left over from an earlier revision of the
test?
serhiy.storchakawiki2026-10-12 11:43:57

The hard-coded port 2833 is gone: since [8b13af389e] (2010) the test connects to [randport], a port just released by the OS. A rare hang is still possible if the client socket connects to itself (TCP simultaneous open, about 1 in 7500 connects to such a port on Linux): the connect then succeeds and gets waits forever. Closing as fixed; the self-connect risk affects several socket tests and can be handled separately.

serhiy.storchaka Closed ticket [548227ffff]. [History diff]2026-10-12 11:43:57
serhiy.storchaka Ticket [548227ffff]: 3 changes [History diff]2026-10-22 17:19:24
Log in (anonymous is fine) to add a comment.