Artifacts Associated With Ticket 3764f4e81f
Ticket change [8eb7f4f05d] (rid 245177) by rossburton on 2025-09-05 11:34:09:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
The `http11` test suite appears to be unreliable on a loaded system. We're occasionally seeing failures that look like this: ``` Only running test files that match: http11.test Tests began at Thu Aug 21 09:30:07 UTC 2025 http11.test ==== Test with ThreadLevel 0 ==== ==== Test with ThreadLevel 1 ==== ==== http11-1.8.1 normal, 1.1 and keepalive, server close FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -protocol 1.1 -keepalive 1 -timeout 10000] http::wait $tok list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close {} ==== http11-1.8.1 FAILED ``` - foundin initialized to: "9.0.2"
- is_private initialized to: "0"
- login: "rossburton"
- priority initialized to: "5 Medium"
- private_contact initialized to: "996cc25f404016303f46d284bf704c17d8b7bc5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "rossburton"
- subsystem initialized to: "69. Other"
- title initialized to: "http11 test suite is unreliable under load"
- type initialized to: "Bug"
Ticket change [6eadef9f4c] (rid 245178) by rossburton on 2025-09-05 11:42:45:
- comment changed to:
The `http11` test suite appears to be unreliable on a loaded system. We're occasionally seeing failures that look like this: ``` Only running test files that match: http11.test Tests began at Thu Aug 21 09:30:07 UTC 2025 http11.test ==== Test with ThreadLevel 0 ==== ==== Test with ThreadLevel 1 ==== ==== http11-1.8.1 normal, 1.1 and keepalive, server close FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -protocol 1.1 -keepalive 1 -timeout 10000] http::wait $tok list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close {} ==== http11-1.8.1 FAILED ``` Or: ``` ==== http11-2.12.1 -channel,negotiate,keepalive FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -keepalive 1] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [m eta $tok x-requested-encodings] [expr {[file size testdoc.html]-[file size testfile.tmp]}] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} {} {} 130034 ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok {} gzip chunked gzip,deflate 0 ==== http11-2.12.1 FAILED ``` - login: "rossburton"
- mimetype: "text/plain"
- comment changed to:
Ticket change [def6fbcf6e] (rid 245179) by rossburton on 2025-09-05 11:49:58:
- comment changed to:
The `http11` test suite appears to be unreliable on a loaded system. We're occasionally seeing failures that look like this: ``` Only running test files that match: http11.test Tests began at Thu Aug 21 09:30:07 UTC 2025 http11.test ==== Test with ThreadLevel 0 ==== ==== Test with ThreadLevel 1 ==== ==== http11-1.8.1 normal, 1.1 and keepalive, server close FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -protocol 1.1 -keepalive 1 -timeout 10000] http::wait $tok list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close {} ==== http11-1.8.1 FAILED ``` Or: ``` ==== http11-2.10.1.1 -channel,deflate,keepalive,msdeflate FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html?msdeflate=1 -timeout 5000 -channel $chan -keepalive 1 -headers {accept-encoding deflate}] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[file size testfile.tmp]}] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} {} 130034 ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok {} deflate chunked 0 ==== http11-2.10.1.1 FAILED ``` Or: ``` ==== http11-2.12.1 -channel,negotiate,keepalive FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -keepalive 1] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [m eta $tok x-requested-encodings] [expr {[file size testdoc.html]-[file size testfile.tmp]}] ---- Result was: eof {} {crc32 mismatch: ne 0} {} {} {} {} 130034 ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok {} gzip chunked gzip,deflate 0 ==== http11-2.12.1 FAILED ``` - login: "rossburton"
- mimetype: "text/plain"
- comment changed to:
Ticket change [a623015943] (rid 258308) by serhiy.storchaka on 2026-10-16 21:36:11:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
The failures happen when a new test server gets the same port as an earlier one, so the client reuses a dead persistent socket, and http.tcl does not replay the request: an empty line left after a chunked -channel response is taken as the status line (8.6 too), and in 9.x http::CheckEof can close a socket that a queued request is about to use ("can't read socketWrState(...)", [05b158ed56]). Proposed fix in branch [/timeline?r=http-keepalive-reuse-closed|http-keepalive-reuse-closed], test http11-5.1. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [3ed99137c6] (rid 261450) by jan.nijtmans on 2026-11-11 22:29:46:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461356.4373479169"
- closer changed to: "jan.nijtmans"
- icomment:
Merged to [98a1b78011|trunk] and core-9-0-branch Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"