Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9e98323975ee64e90cc62368c51d7361901967bcc9545d0c1d0205e612cc6031
Ticket: 55bf73b52bd77304481150b5e94d2c50d2c18b39
http reuses connections after 101 Switching Protocols
User & Date: kjnash on 2022-06-15 00:52:52
Changes

  1. icomment:
    Hi Adrian,
    
    Many thanks for your bug report and patch.  I have committed an update to the "bug-55bf73b52b" branch: [335145438e34383d].
    
    I believe one "in" should be a "ni"; and one variable name is misspelled.  Apart from that the only issue I spotted was the one that you had already labelled "FIXME", and I have attempted to fix it.
    
    When testing, http-3.34 failed (test that -headers is a dict), so I have replaced the test with two more, 3.34 (test that -headers is a list) and 3.35 (test that -headers has an even number of elements).  I have made a slight modification to the http.tcl code so it returns an appropriate error message in each case.
    
    (Jan: I'm assuming that we are permitted to re-use old test numbers.)
    
    I agree that state(-headers) must be a list, not a dict.  We could attempt to munge the values into a dict, but these are request headers supplied by the caller of http::geturl, and I think it is best to keep them and send them to the server exactly as they were specified by the caller.
    
    Best wishes,
    
    Keith.
    
  2. login: "kjnash"
  3. mimetype: "text/x-fossil-wiki"