Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74bf7f7c0c3bd8f3c9a424c212e209196a691e8f
Ticket: 3545363fffffffffffffffffffffffffffffffff
socket/vwait hang in io-53.10 and socket.test
User & Date: nijtmans on 2012-07-30 22:26:26
Changes

  1. icomment:
    After merging bug-3545363 to trunk, and running the tests,
    got 2 relevant failures. The hangs are gone!
    =========================================
    socket.test
    
    
    ==== socket-14.0 [socket -async] when server only listens on IPv4 FAILED
    ==== Contents of test case:
    
            set client [socket -async localhost $port]
            set after [after 1000 {set x [fconfigure $client -error]}]
            vwait x
            set x
    
    ---- Result was:
    
    ---- Result should have been (exact matching):
    ok
    ==== socket-14.0 FAILED
    
    
    
    ==== socket-14.2 [socket -async] fileevent connection refused FAILED
    ==== Contents of test case:
    
            if {[catch {socket -async localhost [randport]} client]} {
                regexp {[^:]*: (.*)} $client -> x
            } else {
                fileevent $client writable {set x [fconfigure $client -error]}
                set after [after 1000 {set x timeout}]
                vwait x
                after cancel $after
                if {$x eq "timeout"} {
                    append x ": [fconfigure $client -error]"
                }
                close $client
            }
            set x
    
    ---- Result was:
    timeout: connection refused
    ---- Result should have been (exact matching):
    connection refused
    ==== socket-14.2 FAILED
    
    .....
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"