Skip to content
Tcl Source Code History Of Ticket 3764f4e81f
Login

History Of Ticket 3764f4e81f

Artifacts Associated With Ticket 3764f4e81f

  1. Ticket change [8eb7f4f05d] (rid 245177) by rossburton on 2025-09-05 11:34:09:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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
      ```
      
    5. foundin initialized to: "9.0.2"
    6. is_private initialized to: "0"
    7. login: "rossburton"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "996cc25f404016303f46d284bf704c17d8b7bc5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "rossburton"
    14. subsystem initialized to: "69. Other"
    15. title initialized to: "http11 test suite is unreliable under load"
    16. type initialized to: "Bug"
  2. Ticket change [6eadef9f4c] (rid 245178) by rossburton on 2025-09-05 11:42:45:

    1. 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
      ```
      
    2. login: "rossburton"
    3. mimetype: "text/plain"
  3. Ticket change [def6fbcf6e] (rid 245179) by rossburton on 2025-09-05 11:49:58:

    1. 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
      ```
      
    2. login: "rossburton"
    3. mimetype: "text/plain"
  4. Ticket change [a623015943] (rid 258308) by serhiy.storchaka on 2026-10-16 21:36:11:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. 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.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  5. Ticket change [3ed99137c6] (rid 261450) by jan.nijtmans on 2026-11-11 22:29:46:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461356.4373479169"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Merged to [98a1b78011|trunk] and core-9-0-branch
      
      Many thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"