Overview
| Artifact ID: | f9d9b909e9572ede1cc69ac25c39fd0de1931e9ea3ce8c68b27ff3af4e2813fd |
|---|---|
| Ticket: | b3977d199b08e3979a8da970553d5209b3042e9c
Channel gets inserts spurious empty lines on receiving torn CR-LF |
| User & Date: | apnadkarni on 2022-07-03 06:46:30 |
Changes
- 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. The channel needs to be non-blocking and in auto translation mode. Marking as severe because although the conditions to trigger are extremely rare, any data corruption in transit is a Bad Thing.
- login: "apnadkarni"
- mimetype: "text/plain"