Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e904ce376434c3f45273b7aa2d4559281291f0ab188435532296a5327fa9c146
Ticket: b3977d199b08e3979a8da970553d5209b3042e9c
Channel gets inserts spurious empty lines on receiving torn CR-LF
User & Date: apnadkarni on 2022-07-03 06:22:57
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    When a CR-LF in an incoming stream is split across packets, and the LF-containing packet is not received when the CR-containing packet is read by the channel, the application receives an spurious empty line on `gets` invocations. To illustrate, run the attached server.tcl and client.tcl files. Seen output is 
    
    ```
    d:\src\tcltk\console\tests>tclsh client.tcl
    <abc>
    <defghi>
    <>
    <jkl>
    ```
    
    Note the extra <> line which should not be present.
    
    Note that this is not specific to socket streams although that's where it is easiest to demonstrate. Also happens on Linux (at least) so not Windows specific.
    
    Marking as severe because although the conditions to trigger are extremely rare, any data corruption in transit is a Bad Thing.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "25. Channel System"
  14. title changed to:
    Channel gets inserts spurious empty lines on receiving torn CR-LF
    
  15. type changed to: "Bug"