|
2026-10-18
| ||
| 20:26 | • Closed ticket [59e7e7fdfb]: socket -async throws when the connect fails at once ... artifact: d8fe43ba8a user: jan.nijtmans | |
|
2012-05-04
| ||
| 03:25 | • Closed ticket [3428754fff]: socket test suite failures with tcl source code head... artifact: 010ecc21a2 user: dgp | |
| 03:12 | • Ticket [3428754fff]: 4 changes artifact: 663a89f5da user: dgp | |
| 01:32 | • Ticket [3428754fff]: 7 changes artifact: 532a183443 user: dgp | |
|
2012-05-02
| ||
| 20:29 | • Ticket [3428754fff]: 4 changes artifact: 1c5ec2c0dc user: lvirden | |
|
2012-04-10
| ||
| 15:20 | • Ticket [3428754fff]: 7 changes artifact: ce4d94d648 user: dkf | |
|
2011-10-26
| ||
| 12:51 | • New ticket [3428754fff]. artifact: a289b0d006 user: lvirden | |
socket test suite failures with tcl source code head
Closed / Fixed3428754fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-10-26 12:51:33
platform: sparc solaris 10, sun c compiler. tcl zip file downloaded from activestate ftp site
socket.test
==== socket-14.1 [socket -async] fileevent while still connecting FAILED
==== Contents of test case:
set client [socket -async localhost $port]
fileevent $client writable {
lappend x [fconfigure $client -error]
fileevent $client writable {}
}
set after [after 1000 {lappend x timeout}]
while {[llength $x] < 2 && "timeout" ni $x} {
vwait x
}
lsort $x; # we only want to see both events, the order doesn't matter
---- Result was:
ok timeout
---- Result should have been (exact matching):
{} ok
==== socket-14.1 FAILED
==== socket-14.2 [socket -async] fileevent connection refused FAILED
==== Contents of test case:
set client [socket -async localhost [randport]]
fileevent $client writable {set x [fconfigure $client -error]}
set after [after 1000 {set x timeout}]
vwait x
if {$x eq "timeout"} {
append x ": [fconfigure $client -error]"
}
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 -async localhost [randport]"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection refused}
---- Test cleanup failed:
can not find channel named "sock142578"
---- errorInfo(cleanup): can not find channel named "sock142578"
while executing
"close $client"
("uplevel" body line 3)
invoked from within
"uplevel 1 $cleanup"
---- errorCode(cleanup): TCL LOOKUP CHANNEL sock142578
==== socket-14.2 FAILED
==== socket-14.4 [socket -async] and both, readdable and writable fileevents FAILED
==== Contents of test case:
set client [socket -async localhost $port]
fileevent $client writable {
lappend x [fconfigure $client -error]
fileevent $client writable {}
}
fileevent $client readable {lappend x [gets $client]}
set after [after 1000 {lappend x timeout}]
while {[llength $x] < 2 && "timeout" ni $x} {
vwait x
}
lsort $x
---- Result was:
timeout
---- Result should have been (exact matching):
{} bye
==== socket-14.4 FAILED
dkfplain2012-04-10 15:20:53
Can't see any problems on OSX or Linux; been running the test suite fairly regularly there.
lvirdenplain2012-05-02 20:29:46
tried the test suite on sparc solaris 9 compiled with sun compiler, using Tcl_Source_Code_2012-05-02_065054_cf269b5da3/ version of code and still see these errors
dgpplain2012-05-04 01:32:24
Partially fixed by fixes for 3428753. I see only socket-14.2 continue to fail.
dgpplain2012-05-04 03:12:52
Test socket-14.2 fails because it assumes that [socket -async] will not report failure to connect immediately, but will only do so via an asynchronous callback. That's not true.
dgpplain2012-05-04 03:25:55
allow_comments - 1 fixed on trunk.
Log in (anonymous is fine) to add a comment.