Skip to content
Tcl Source Code View Ticket
Login

View Ticket

server sockets never accept connections on Windows

Closed / Fixed218806ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:46
OriginalBugID: 2178 Bug
Version: 8.1.1
SubmitDate: '1999-06-04'
LastModified: '1999-07-21'
Severity: CRIT
Status: Released
Submitter: stanton
ChangedBy: redman
RelatedBugIDs: 2256 2259 2323 2329 2355
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-07-21'
FixedInVersion: 8.2b1
ClosedDate: '2000-10-25'


The new socket driver fails to report ACCEPT events to the server socket, so incoming connections are never seen by the script.

The following script demonstrates the bug:    

  proc accept {s args} {
puts "accept $s [list $args]"
puts $s foobar
close $s
    }
    set s1 [socket -server accept 5001]
    after 1000
    set s2 [socket 127.0.0.1 5001]
    set z 0
    fileevent $s2 readable { incr z }
    puts "first wait"
    vwait z
    puts "never gets here"



06/04/1999 18:42 - stanton - I have rolled back to the core-8-1-0 implementation, which is the last mostly working version.  We need to schedule time to fix this properly for the next patch release.

Fixed in 8.2b2 with new socket implementation.

-- 07/21/1999 redman
welch Closed ticket [218806ffff]. [History diff]2000-10-26 08:29:16
dgp Ticket [218806ffff]: 3 changes [History diff]2001-04-01 01:47:35
Log in (anonymous is fine) to add a comment.