<i>Channel gets inserts spurious empty lines on receiving torn CR-LF</i> status still Open with 3 other changes
by
.
D 2022-07-03T06:46:30.146
J comment When\sa\sCR-LF\sin\san\sincoming\sstream\sis\ssplit\sacross\spackets,\sand\sthe\sLF-containing\spacket\sis\snot\sreceived\swhen\sthe\sCR-containing\spacket\sis\sread\sby\sthe\schannel,\sthe\sapplication\sreceives\san\sspurious\sempty\sline\son\s`gets`\sinvocations.\sTo\sillustrate,\srun\sthe\sattached\sserver.tcl\sand\sclient.tcl\sfiles.\sSeen\soutput\sis\s\r\n\r\n```\r\nd:\\src\\tcltk\\console\\tests>tclsh\sclient.tcl\r\n<abc>\r\n<defghi>\r\n<>\r\n<jkl>\r\n```\r\n\r\nNote\sthe\sextra\s<>\sline\swhich\sshould\snot\sbe\spresent.\r\n\r\nNote\sthat\sthis\sis\snot\sspecific\sto\ssocket\sstreams\salthough\sthat's\swhere\sit\sis\seasiest\sto\sdemonstrate.\sAlso\shappens\son\sLinux\s(at\sleast)\sso\snot\sWindows\sspecific.\sThe\schannel\sneeds\sto\sbe\snon-blocking\sand\sin\sauto\stranslation\smode.\r\n\r\nMarking\sas\ssevere\sbecause\salthough\sthe\sconditions\sto\strigger\sare\sextremely\srare,\sany\sdata\scorruption\sin\stransit\sis\sa\sBad\sThing.
J login apnadkarni
J mimetype text/plain
K b3977d199b08e3979a8da970553d5209b3042e9c
U apnadkarni
Z e2cf078764378439c696d33edfb019d6