Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e80865243f3ae44e424010f1659e7dc3d53964a3
Ticket: 2a94652ee10cae20c0b54cf9fd6516eb01daadd5
http package reply "100 continue" code broken
User & Date: oehhar on 2017-08-30 14:23:17
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    http 2.8.11 package does not correctly ignore "100 Continue" replies.
    The relevant code is broken.
    
    What happens?
    [https://tools.ietf.org/html/rfc7231#section-6.2.1]
    
    The first line of a web server reply contains the status.
    If this is:
    <verbatim>
    HTTP/1.1 100 Contine
    </verbatim>
    the real header will follow as a following line.
    
    The current code correctly ignores the continue status, but does not expect a following status line.
    
    The insertion of a set to state "connecting" fixes that (around line 1034):
    <verbatim>
    proc http::Event {sock token} {
    ...
    	    # We ignore HTTP/1.1 100 Continue returns. RFC2616 sec 8.2.3
    	    if {$state(http) == "" || ([regexp {^\S+\s(\d+)} $state(http) {} x] && $x == 100)} {
    		set state(state) "connecting"
    		return
    	    }
    </verbatim>
    
    At least, inserting this line cured the communication for me with TCLWS and a .net server.
    
  5. foundin changed to: "8.6.7"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "29. http Package"
  15. title changed to: "http package reply "100 continue" code broken"
  16. type changed to: "Bug"