Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-10
17:55 • Ticket [7c9b3f3832] New http test failures status still Closed with 5 other ... artifact: 9d24d285cb user: jan.nijtmans
17:33 • Closed ticket [7c9b3f3832]. artifact: ef7e897003 user: dgp
16:58 • Ticket [7c9b3f3832]: 3 changes artifact: d2e10eaf2a user: serhiy.storchaka
16:40 • New ticket [7c9b3f3832]. artifact: 2afc1697cb user: dgp

New http test failures

Closed / Invalid7c9b3f3832805e2be79cac249377531ad6cac578Created 23 days agoUpdated 23 days ago
Descriptionplain2026-11-10 16:40:31
After the latest sync, 9.0 and trunk branches are failing in new ways:

http.test
Running httpd in thread tid0x7f741aec6640
Running httpd in thread tid0x7f741a6c5640
==== Test with ThreadLevel 0 ====


==== http-4.19.0 keepalive socket closed by the server before reuse (bug [05b158ed56]) FAILED
==== Contents of test case:

    set result {}
    for {set i 0} {$i < 3} {incr i} {
	set token [http::geturl $srvurl -keepalive 1 -timeout 5000]
	lappend result [http::status $token] [http::data $token]
	http::cleanup $token
    }
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(127.0.0.1:32881)": no such element in array
    while executing
"http::geturl $srvurl -keepalive 1 -timeout 5000"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.19.0 FAILED

Running httpd in thread tid0x7f7419e6a640
==== Test with ThreadLevel 1 ====


==== http-4.19.1 keepalive socket closed by the server before reuse (bug [05b158ed56]) FAILED
==== Contents of test case:

    set result {}
    for {set i 0} {$i < 3} {incr i} {
	set token [http::geturl $srvurl -keepalive 1 -timeout 5000]
	lappend result [http::status $token] [http::data $token]
	http::cleanup $token
    }
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(127.0.0.1:45383)": no such element in array
    while executing
"http::geturl $srvurl -keepalive 1 -timeout 5000"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.19.1 FAILED

Running httpd in thread tid0x7f7419e6a640
==== Test with ThreadLevel 2 ====


==== http-4.19.2 keepalive socket closed by the server before reuse (bug [05b158ed56]) FAILED
==== Contents of test case:

    set result {}
    for {set i 0} {$i < 3} {incr i} {
	set token [http::geturl $srvurl -keepalive 1 -timeout 5000]
	lappend result [http::status $token] [http::data $token]
	http::cleanup $token
    }
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(127.0.0.1:35681)": no such element in array
    while executing
"http::geturl $srvurl -keepalive 1 -timeout 5000"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http-4.19.2 FAILED

http11.test
==== Test with ThreadLevel 0 ====


==== http11-5.1.0 reuse persistent socket after server restart, bug 3764f4e81f FAILED
==== Contents of test case:

    set h [restart_httpd $port]
    set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -channel $chan -timeout 5000]
    lappend res [http::status $tok]
    http::cleanup $tok
    # No event loop between the restart and the next request.
    foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend res [http::status $tok] [check_crc $tok]
	http::cleanup $tok
    }
    set res

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(localhost:33203)": no such element in array
    while executing
"http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000"
    ("foreach" body line 3)
    invoked from within
"foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend r..."
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http11-5.1.0 FAILED

==== Test with ThreadLevel 1 ====


==== http11-5.1.1 reuse persistent socket after server restart, bug 3764f4e81f FAILED
==== Contents of test case:

    set h [restart_httpd $port]
    set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -channel $chan -timeout 5000]
    lappend res [http::status $tok]
    http::cleanup $tok
    # No event loop between the restart and the next request.
    foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend res [http::status $tok] [check_crc $tok]
	http::cleanup $tok
    }
    set res

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(localhost:40139)": no such element in array
    while executing
"http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000"
    ("foreach" body line 3)
    invoked from within
"foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend r..."
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http11-5.1.1 FAILED

==== Test with ThreadLevel 2 ====


==== http11-5.1.2 reuse persistent socket after server restart, bug 3764f4e81f FAILED
==== Contents of test case:

    set h [restart_httpd $port]
    set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -channel $chan -timeout 5000]
    lappend res [http::status $tok]
    http::cleanup $tok
    # No event loop between the restart and the next request.
    foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend res [http::status $tok] [check_crc $tok]
	http::cleanup $tok
    }
    set res

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "socketWrState(localhost:37779)": no such element in array
    while executing
"http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000"
    ("foreach" body line 3)
    invoked from within
"foreach i {1 2 3} {
	set h [restart_httpd $port $h]
	set tok [http::geturl http://localhost:$port/testdoc.html  -keepalive 1 -timeout 5000]
	lappend r..."
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== http11-5.1.2 FAILED
serhiy.storchakawiki2026-11-10 16:58:17

This is a stale library zip, see [1555016064]: an incremental build does not rebuild libtcl9.x.y.zip when only files in library/ change, so the new tests ran against the old http.tcl. Reproduced exactly that way; after deleting the zip and running make again, http.test and http11.test pass.

Workaround: delete the zip file in the build directory (or make clean). Proposed fix in branch zip-depends-on-library.

dgpplain2026-11-10 17:33:20
I could swear this was after a `make distclean` but trying
again I cannot reproduce.

Please alert me if these are http package changes that
should cause a new version number.
jan.nijtmanswiki2026-11-10 17:55:10

There is no need for a version bump, since this was recently done already, and never released

Log in (anonymous is fine) to add a comment.