|
2010-11-29
| ||
| 20:29 | • Ticket [3103740fff] socket_inet6-12.2 inconsistent failures status still Ope... artifact: bd90ec045a user: dgp | |
|
2010-11-05
| ||
| 17:42 | • New ticket [3103740fff]. artifact: e7f5549347 user: dgp | |
socket_inet6-12.2 inconsistent failures
Open3103740fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-11-05 17:42:16
==== 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.
dgpplain2010-11-29 20:29:42
still seeing this.
Log in (anonymous is fine) to add a comment.