|
2004-07-16
| ||
| 06:05 | • Ticket [976440ffff] socket failures/hangs on FreeBSD status still Closed wit... artifact: 2148efa59f user: andreas_kupries | |
| 06:05 | • Closed ticket [976440ffff]. artifact: 40606d8129 user: andreas_kupries | |
|
2004-07-14
| ||
| 09:04 | • Ticket [976440ffff]: 5 changes artifact: d6bbf30646 user: mistachkin | |
|
2004-06-21
| ||
| 12:09 | • Ticket [976440ffff]: 7 changes artifact: 5376a5c614 user: dgp | |
|
2004-06-20
| ||
| 23:49 | • New ticket [976440ffff]. artifact: 83aab89e74 user: mistachkin | |
socket failures/hangs on FreeBSD
Closed / Wont Fix976440ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-20 23:49:30
There are various test failures in HEAD on FreeBSD 4.10-
STABLE. Not sure if any of these also appear on other
Unix variants as well.
The hang happens sometime after the final line of test
output (below) is produced.
Test files run in separate interpreters
Running tests that match: *
Skipping test files that match: l.*.test
Only running test files that match: *.test
Tests began at Sun Jun 20 16:50:41 PDT 2004
append.test
appendComp.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
clock.test
cmdAH.test
cmdIL.test
cmdInfo.test
cmdMZ.test
compExpr-old.test
compExpr.test
compile.test
concat.test
config.test
dcall.test
dict.test
dstring.test
encoding.test
env.test
error.test
eval.test
event.test
exec.test
execute.test
expr-old.test
expr.test
fCmd.test
fileName.test
fileSystem.test
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
Running httpd in thread 135604224
==== http-3.3 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url]
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.3 FAILED
==== http-3.4 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url]
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.4 FAILED
==== http-3.5 http::geturl FAILED
==== Contents of test case:
http::config -proxyfilter selfproxy
set token [http::geturl $url]
http::config -proxyfilter http::ProxyRequired
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.5 FAILED
==== http-3.6 http::geturl FAILED
==== Contents of test case:
http::config -proxyfilter bogus
set token [http::geturl $url]
http::config -proxyfilter http::ProxyRequired
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.6 FAILED
==== http-3.7 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url -headers {Pragma no-
cache}]
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -headers {Pragma no-cache}"
invoked from within
"set token [http::geturl $url -headers {Pragma no-
cache}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.7 FAILED
==== http-3.8 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url -query
Name=Value&Foo=Bar -timeout 2000]
http::data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: connect failed
while executing
"http::geturl $url -query Name=Value&Foo=Bar -timeout
2000"
invoked from within
"set token [http::geturl $url -query
Name=Value&Foo=Bar -timeout 2000]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.8 FAILED
==== http-3.9 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url -validate 1]
http::code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -validate 1"
invoked from within
"set token [http::geturl $url -validate 1]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.9 FAILED
==== http-3.10 http::geturl queryprogress FAILED
==== Contents of test case:
set query foo=bar
set sep ""
set i 0
# Create about 120K of query data
while {$i < 14} {
incr i
append query $sep$query
set sep &
}
proc postProgress {token x y} {
global postProgress
lappend postProgress $y
}
set postProgress {}
set t [http::geturl $posturl -query $query -
queryprogress postProgress -queryblocksize 16384]
http::wait $t
list [http::status $t] [string length $query]
$postProgress [http::data $t]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $posturl -query $query -queryprogress
postProgress -queryblocksize 16384"
invoked from within
"set t [http::geturl $posturl -query $query -
queryprogress postProgress -queryblocksize 16384]"
("uplevel" body line 17)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.10 FAILED
==== http-3.11 http::geturl querychannel with -
command FAILED
==== Contents of test case:
set query foo=bar
set sep ""
set i 0
# Create about 120K of query data
while {$i < 14} {
incr i
append query $sep$query
set sep &
}
set file [makeFile $query outdata]
set fp [open $file]
proc asyncCB {token} {
global postResult
lappend postResult [http::data $token]
}
set postResult [list ]
set t [http::geturl $posturl -querychannel $fp]
http::wait $t
set testRes [list [http::status $t] [string length
$query] [http::data $t]]
# Now do async
http::cleanup $t
close $fp
set fp [open $file]
set t [http::geturl $posturl -querychannel $fp -
command asyncCB]
set postResult [list PostStart]
http::wait $t
close $fp
lappend testRes [http::status $t] $postResult
removeFile outdata
set testRes
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $posturl -querychannel $fp"
invoked from within
"set t [http::geturl $posturl -querychannel $fp]"
("uplevel" body line 19)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.11 FAILED
==== http-3.14 http::geturl
http://user:[email protected]:8010/a/b/c FAILED
==== Contents of test case:
set token [http::geturl $fullurl -validate 1]
http::code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $fullurl -validate 1"
invoked from within
"set token [http::geturl $fullurl -validate 1]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-3.14 FAILED
==== http-4.1 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url]
upvar #0 $token data
array set meta $data(meta)
expr ($data(totalsize) == $meta(Content-Length))
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.1 FAILED
==== http-4.2 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url]
upvar #0 $token data
array set meta $data(meta)
string compare $data(type) [string trim $meta
(Content-Type)]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.2 FAILED
==== http-4.3 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url]
http::code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.3 FAILED
==== http-4.4 http::Event FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http::geturl $url -channel $out]
close $out
set in [open $testfile]
set x [read $in]
close $in
removeFile $testfile
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -channel $out"
invoked from within
"set token [http::geturl $url -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.4 FAILED
==== http-4.5 http::Event FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http::geturl $url -channel $out]
close $out
upvar #0 $token data
removeFile $testfile
expr $data(currentsize) == $data(totalsize)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -channel $out"
invoked from within
"set token [http::geturl $url -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.5 FAILED
==== http-4.6 http::Event FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http::geturl $binurl -channel $out]
close $out
set in [open $testfile]
fconfigure $in -translation binary
set x [read $in]
close $in
removeFile $testfile
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $binurl -channel $out"
invoked from within
"set token [http::geturl $binurl -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.6 FAILED
==== http-4.7 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url -progress myProgress]
set progress
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -progress myProgress"
invoked from within
"set token [http::geturl $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.7 FAILED
==== http-4.8 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url]
http::status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.8 FAILED
==== http-4.9 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url -progress myProgress]
http::code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -progress myProgress"
invoked from within
"set token [http::geturl $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.9 FAILED
==== http-4.10 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url -progress myProgress]
http::size $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url -progress myProgress"
invoked from within
"set token [http::geturl $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.10 FAILED
==== http-4.11 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url -timeout 1 -command
{#}]
http::reset $token
http::status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: connect failed
while executing
"http::geturl $url -timeout 1 -command {#}"
invoked from within
"set token [http::geturl $url -timeout 1 -command {#}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.11 FAILED
==== http-4.12 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url/?timeout=10 -command
{#}]
http::reset $token
http::status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url/?timeout=10 -command {#}"
invoked from within
"set token [http::geturl $url/?timeout=10 -command
{#}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.12 FAILED
==== http-4.13 http::Event FAILED
==== Contents of test case:
set token [http::geturl $url?timeout=30 -timeout 10 -
command {#}]
http::wait $token
http::status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: connect failed
while executing
"http::geturl $url?timeout=30 -timeout 10 -command
{#}"
invoked from within
"set token [http::geturl $url?timeout=30 -timeout 10 -
command {#}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.13 FAILED
==== http-6.1 http::ProxyRequired FAILED
==== Contents of test case:
http::config -proxyhost [info hostname] -proxyport
$port
set token [http::geturl $url]
http::wait $token
http::config -proxyhost {} -proxyport {}
upvar #0 $token data
set data(body)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"http::geturl $url"
invoked from within
"set token [http::geturl $url]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-6.1 FAILED
httpold.test
==== httpold-3.3 http_get FAILED
==== Contents of test case:
set token [http_get $url]
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.3 FAILED
==== httpold-3.4 http_get FAILED
==== Contents of test case:
set token [http_get $url]
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.4 FAILED
==== httpold-3.5 http_get FAILED
==== Contents of test case:
http_config -proxyfilter selfproxy
set token [http_get $url]
http_config -proxyfilter httpProxyRequired
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $phost $pport"
(procedure "http_get" line 59)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.5 FAILED
==== httpold-3.6 http_get FAILED
==== Contents of test case:
http_config -proxyfilter bogus
set token [http_get $url]
http_config -proxyfilter httpProxyRequired
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.6 FAILED
==== httpold-3.7 http_get FAILED
==== Contents of test case:
set token [http_get $url -headers {Pragma no-
cache}]
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -headers {Pragma no-cache}"
invoked from within
"set token [http_get $url -headers {Pragma no-cache}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.7 FAILED
==== httpold-3.8 http_get FAILED
==== Contents of test case:
set token [http_get $url -query Name=Value&Foo=Bar]
http_data $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -query Name=Value&Foo=Bar"
invoked from within
"set token [http_get $url -query Name=Value&Foo=Bar]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.8 FAILED
==== httpold-3.9 http_get FAILED
==== Contents of test case:
set token [http_get $url -validate 1]
http_code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -validate 1"
invoked from within
"set token [http_get $url -validate 1]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-3.9 FAILED
==== httpold-4.1 httpEvent FAILED
==== Contents of test case:
set token [http_get $url]
upvar #0 $token data
array set meta $data(meta)
expr ($data(totalsize) == $meta(Content-Length))
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.1 FAILED
==== httpold-4.2 httpEvent FAILED
==== Contents of test case:
set token [http_get $url]
upvar #0 $token data
array set meta $data(meta)
string compare $data(type) [string trim $meta
(Content-Type)]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.2 FAILED
==== httpold-4.3 httpEvent FAILED
==== Contents of test case:
set token [http_get $url]
http_code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.3 FAILED
==== httpold-4.4 httpEvent FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http_get $url -channel $out]
close $out
set in [open $testfile]
set x [read $in]
close $in
removeFile $testfile
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -channel $out"
invoked from within
"set token [http_get $url -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.4 FAILED
==== httpold-4.5 httpEvent FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http_get $url -channel $out]
close $out
upvar #0 $token data
removeFile $testfile
expr $data(currentsize) == $data(totalsize)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -channel $out"
invoked from within
"set token [http_get $url -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.5 FAILED
==== httpold-4.6 httpEvent FAILED
==== Contents of test case:
set testfile [makeFile "" testfile]
set out [open $testfile w]
set token [http_get $binurl -channel $out]
close $out
set in [open $testfile]
fconfigure $in -translation binary
set x [read $in]
close $in
removeFile $testfile
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $binurl -channel $out"
invoked from within
"set token [http_get $binurl -channel $out]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.6 FAILED
==== httpold-4.7 httpEvent FAILED
==== Contents of test case:
set token [http_get $url -progress myProgress]
set progress
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -progress myProgress"
invoked from within
"set token [http_get $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.7 FAILED
==== httpold-4.8 httpEvent FAILED
==== Contents of test case:
set token [http_get $url]
http_status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.8 FAILED
==== httpold-4.9 httpEvent FAILED
==== Contents of test case:
set token [http_get $url -progress myProgress]
http_code $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -progress myProgress"
invoked from within
"set token [http_get $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.9 FAILED
==== httpold-4.10 httpEvent FAILED
==== Contents of test case:
set token [http_get $url -progress myProgress]
http_size $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -progress myProgress"
invoked from within
"set token [http_get $url -progress myProgress]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.10 FAILED
==== httpold-4.11 httpEvent FAILED
==== Contents of test case:
set token [http_get $url -timeout 1 -command {#}]
http_reset $token
http_status $token
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -timeout 1 -command {#}"
invoked from within
"set token [http_get $url -timeout 1 -command {#}]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.11 FAILED
==== httpold-4.12 httpEvent FAILED
==== Contents of test case:
update
set x {}
after 500 {lappend x ok}
set token [http_get $url -timeout 1 -command
{lappend x fail}]
vwait x
list [http_status $token] $x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url -timeout 1 -command {lappend x fail}"
invoked from within
"set token [http_get $url -timeout 1 -command {lappend
x fail}]"
("uplevel" body line 5)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-4.12 FAILED
==== httpold-6.1 httpProxyRequired FAILED
==== Contents of test case:
update
http_config -proxyhost [info hostname] -proxyport
$port
set token [http_get $url]
http_wait $token
http_config -proxyhost {} -proxyport {}
upvar #0 $token data
set data(body)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket $host $port"
(procedure "http_get" line 61)
invoked from within
"http_get $url"
invoked from within
"set token [http_get $url]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== httpold-6.1 FAILED
if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
:Total24Passed24Skipped
0Failed0
interp.test
io.test
==== io-29.34 Tcl_Close, async flush on close, using
sockets FAILED
==== Contents of test case:
variable c 0
variable x running
set l
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyza
bcdefghijklmnopqrstuvwxyz
proc writelots {s l} {
for {set i 0} {$i < 2000} {incr i} {
puts $s $l
}
}
proc accept {s a p} {
variable x
fileevent $s readable [namespace code [list
readit $s]]
fconfigure $s -blocking off
set x accepted
}
proc readit {s} {
variable c
variable x
set l [gets $s]
if {[eof $s]} {
close $s
set x done
} elseif {([string length $l] > 0) || ![fblocked
$s]} {
incr c
}
}
set ss [socket -server [namespace code accept] 0]
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
vwait [namespace which -variable x]
fconfigure $cs -blocking off
writelots $cs $l
close $cs
close $ss
vwait [namespace which -variable x]
set c
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]"
invoked from within
"set cs [socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]]"
("uplevel" body line 29)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== io-29.34 FAILED
==== io-29.35 Tcl_Close vs fileevent vs multiple
interpreters FAILED
==== Contents of test case:
# On Mac, this test screws up sockets such that
subsequent tests using port 2828
# either cause errors or panic().
catch {interp delete x}
catch {interp delete y}
interp create x
interp create y
set s [socket -server [namespace code accept] 0]
proc accept {s a p} {
puts $s hello
close $s
}
set c [socket [info hostname] [lindex [fconfigure $s -
sockname] 2]]
interp share {} $c x
interp share {} $c y
close $c
x eval {
proc readit {s} {
gets $s
if {[eof $s]} {
close $s
}
}
}
y eval {
proc readit {s} {
gets $s
if {[eof $s]} {
close $s
}
}
}
x eval "fileevent $c readable \{readit $c\}"
y eval "fileevent $c readable \{readit $c\}"
y eval [list close $c]
update
close $s
interp delete x
interp delete y
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket [info hostname] [lindex [fconfigure $s -
sockname] 2]"
invoked from within
"set c [socket [info hostname] [lindex [fconfigure $s -
sockname] 2]]"
("uplevel" body line 14)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== io-29.35 FAILED
==== io-51.1 Test old socket deletion on Macintosh
FAILED
==== Contents of test case:
set x 0
set result ""
proc accept {s a p} {
variable x
variable wait
fconfigure $s -blocking off
puts $s "sock[incr x]"
close $s
set wait done
}
set ss [socket -server [namespace code accept] 0]
variable wait ""
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
vwait [namespace which -variable wait]
lappend result [gets $cs]
close $cs
set wait ""
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
vwait [namespace which -variable wait]
lappend result [gets $cs]
close $cs
set wait ""
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
vwait [namespace which -variable wait]
lappend result [gets $cs]
close $cs
set wait ""
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
vwait [namespace which -variable wait]
lappend result [gets $cs]
close $cs
close $ss
set result
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]"
invoked from within
"set cs [socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]]"
("uplevel" body line 14)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== io-51.1 FAILED
==== io-54.1 Recursive channel events FAILED
==== Contents of test case:
# This test checks to see if file events are delivered
during recursive
# event loops when there is buffered data on the
channel.
proc accept {s a p} {
variable as
fconfigure $s -translation lf
puts $s "line 1\nline2\nline3"
flush $s
set as $s
}
proc readit {s next} {
variable x
variable result
lappend result $next
if {$next == 1} {
fileevent $s readable [namespace code [list
readit $s 2]]
vwait [namespace which -variable x]
}
incr x
}
set ss [socket -server [namespace code accept] 0]
# We need to delay on some systems until the
creation of the
# server socket completes.
set done 0
for {set i 0} {$i < 10} {incr i} {
if {![catch {set cs [socket [info hostname]
[lindex [fconfigure $ss -sockname] 2]]}]} {
set done 1
break
}
after 100
}
if {$done == 0} {
close $ss
error "failed to connect to server"
}
variable result {}
variable x 0
variable as
vwait [namespace which -variable as]
fconfigure $cs -translation lf
lappend result [gets $cs]
fconfigure $cs -blocking off
fileevent $cs readable [namespace code [list readit
$cs 1]]
set a [after 2000 [namespace code { set x failure }]]
vwait [namespace which -variable x]
after cancel $a
close $as
close $ss
close $cs
list $result $x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: failed to connect to server
while executing
"error "failed to connect to server""
invoked from within
"if {$done == 0} {
close $ss
error "failed to connect to server"
}"
("uplevel" body line 35)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== io-54.1 FAILED
ioCmd.test
ioUtil.test
iogt.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
lrange.test
lrepeat.test
lreplace.test
lsearch.test
lset.test
lsetComp.test
macOSXFCmd.test
main.test
misc.test
msgcat.test
namespace-old.test
namespace.test
notify.test
obj.test
opt.test
package.test
parse.test
parseExpr.test
parseOld.test
pid.test
pkg.test
:Total117Passed117Skipped
0Failed0
pkgMkIndex.test
platform.test
proc-old.test
proc.test
pwd.test
reg.test
regexp.test
regexpComp.test
registry.test
rename.test
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test
==== socket-2.10 close on accept, accepted socket
lives FAILED
==== Contents of test case:
set done 0
set timer [after 20000 "set done timed_out"]
set ss [socket -server accept 0]
proc accept {s a p} {
global ss
close $ss
fileevent $s readable "readit $s"
fconfigure $s -trans lf
}
proc readit {s} {
global done
gets $s
close $s
set done 1
}
set cs [socket [info hostname] [lindex [fconfigure
$ss -sockname] 2]]
puts $cs hello
close $cs
vwait done
after cancel $timer
set done
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]"
invoked from within
"set cs [socket [info hostname] [lindex [fconfigure $ss -
sockname] 2]]"
("uplevel" body line 17)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== socket-2.10 FAILED
==== socket-7.4 testing socket specific options FAILED
==== Contents of test case:
set s [socket -server accept 0]
proc accept {s a p} {
global x
set x [fconfigure $s -sockname]
close $s
}
set listen [lindex [fconfigure $s -sockname] 2]
set s1 [socket [info hostname] $listen]
set timer [after 10000 "set x timed_out"]
vwait x
after cancel $timer
close $s
close $s1
set l ""
lappend l [expr {[lindex $x 2] == $listen}] [llength $x]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
while executing
"socket [info hostname] $listen"
invoked from within
"set s1 [socket [info hostname] $listen]"
("uplevel" body line 9)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection
refused}
==== socket-7.4 FAILED
dgpplain2004-06-21 12:09:55
Logged In: YES user_id=80530 Common denominator appears to be sockets ?
mistachkinplain2004-07-14 09:04:13
Logged In: YES user_id=113501 Cause tracked down to [info hostname] not resolving. Perhaps these tests should connect to "localhost"? I don't believe that the test suite should just hang, regardless.
andreas_kupries Closed ticket [976440ffff].
[History diff]2004-07-16 06:05:45
andreas_kupriesplain2004-07-16 06:05:46
Logged In: YES user_id=75003 I havent' seen this before, on all the platforms I have here. And if I look at, for example, socket-7.4 I see nothing truly problematic. That [info hostname] is not resolving looks to me more like a misconfiguation of the resolver on that machine than anything else. Did usage of 'localhost' actually help ? With a misconfigured resolver even that name can fail to resolve.
Log in (anonymous is fine) to add a comment.