Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d29a6fb8cf75b8d07ab59351849ff3653d0e9d31b76effad6c0bf30a53690b2a
Ticket: 55bf73b52bd77304481150b5e94d2c50d2c18b39
http reuses connections after 101 Switching Protocols
User & Date: adrianmedranocalvo on 2022-03-11 11:06:31
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The http package reuses connections even after receiving an "101 Switching Protocols" response.
    
    The issue can be readily seen with the Tcllib websocket package, which uses the http package to establish the websocket connection.
    
    ```
    % set ws [::websocket::open ws://ws.ifelse.io [lambda {args} { puts $args }]]
    sock2d5b7b0
    % set ws2 [::websocket::open ws://ws.ifelse.io [lambda {args} { puts $args }]]
    sock2d5b7b0
    ```
    
    The second call to ::websocket::open should open a new WebSocket connection, instead it reuses the former, which is no longer an HTTP connection.  One can no longer open two WebSocket connections to the same server.
    
    This change happened somewhere between 2.8.9 and 2.9.1.
    
    The HTTP package should no longer reuse connections after receiving a "101 Switching Protocols" response.
    
  5. foundin changed to: "2.9.1"
  6. is_private changed to: "0"
  7. login: "adrianmedranocalvo"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "517c8ce60dc53e9fbef6e97de1837b4a4adc854b"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "adrianmedranocalvo"
  14. subsystem changed to: "29. http Package"
  15. title changed to:
    http reuses connections after 101 Switching Protocols
    
  16. type changed to: "Bug"