Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 177cdba342a3044e9678d9e4662c8a7f3246c86b
Ticket: 578164ffffffffffffffffffffffffffffffffff
socket-2.4 fails on WinNT
User & Date: kennykb on 2002-07-06 17:59:23
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In the current HEAD, socket-2.4 appears not to be
    working owing to some sort of synchronization problem
    within the test case.
    
    
    ==== socket-2.4 tcp connection with server interface specified FAILED
    ==== Contents of test case:
    
        removeFile script
        set f [open $path(script) w]
        puts $f {
            set timer [after 2000 "set x done"]
            set f [socket -server accept -myaddr [info hostname] 0]
            proc accept {file addr port} {
                global x
                puts "[gets $file]"
                close $file
                set x done
            }
            puts ready
            puts [lindex [fconfigure $f -sockname] 2]
            vwait x
            after cancel $timer
            close $f
        }
        close $f
        set f [open "|[list $::tcltest::tcltest $path(script)]" r]
        gets $f x
        gets $f listen
        if {[catch {socket [info hostname] $listen} sock]} {
            set x $sock
        } else {
            puts $sock hello
            flush $sock
            lappend x [gets $f]
            close $sock
        }
        close $f
        set x
    
    ---- Result was:
    couldn't open socket: connection refused
    ---- Result should have been (exact matching):
    ready hello
    ==== socket-2.4 FAILED
    
  4. foundin changed to: "obsolete: 8.4b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "socket-2.4 fails on WinNT"
  11. type changed to: "Bug"