Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e7f5549347e2e184eca297cfc5d566ad55e9d23e
Ticket: 3103740fffffffffffffffffffffffffffffffff
socket_inet6-12.2 inconsistent failures
User & Date: dgp on 2010-11-05 17:42:16
Changes

  1. assignee changed to: "rmax"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    ==== socket_inet6-12.2 testing inheritance of client sockets FAILED
    ==== Contents of test case:
    
        # Create the server socket
        set server [socket -server accept -myaddr $localhost 0]
        proc accept { file host port } {
            # When the client connects, establish the read handler
            global server
            close $server
            fileevent $file readable [list getdata $file]
            fconfigure $file -buffering line -blocking 0
        }
        proc getdata { file } {
            # Read handler on the accepted socket.
            global x failed
            set status [catch {read $file} data]
            if {$status != 0} {
                set x {read failed, error was $data}
                catch { close $file }
            } elseif {$data ne ""} {
            } elseif {[fblocked $file]} {
            } elseif {[eof $file]} {
                if {$failed} {
                    set x {client socket was inherited}
                } else {
                    set x {client socket was not inherited}
                }
                catch { close $file }
            } else {
                set x {impossible case}
                catch { close $file }
            }
        }
        # Launch the script2 process
        ### exec [interpreter] script2 &
        set p [open "|[list [interpreter] $path(script2)]" w]
        puts $p [lindex [fconfigure $server -sockname] 2] ; flush $p
        vwait x
        return $x
    
    ---- Result was:
    client socket was inherited
    ---- Result should have been (exact matching):
    client socket was not inherited
    ==== socket_inet6-12.2 FAILED
    
    
    Sometimes fails; sometimes does not.
    
    Suspect the tightening of some timeouts
    overshot a bit.
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "27. Channel Types"
  11. title changed to: "socket_inet6-12.2 inconsistent failures"
  12. type changed to: "Bug"