Skip to content
Tcl Source Code Artifact [16aa649661]
Login

Artifact [16aa649661]

Artifact 16aa6496610ae087f7d0faf7569e53904c6760df:

Ticket change [16aa649661] - Ticket [c31ca233cacd7d61|c31ca233ca] <i>tlsIO-2.11 failure</i> status still Open with 3 other changes by dgp on 2014-07-02 20:07:07.
D 2014-07-02T20:07:07.510
J icomment New\sattachment,\seof.patch,\sis\sanother\sway\sto\r\nfix\sthe\sfailing\stest\stlsIO-2.10.\s\s\r\n\r\nI\sbelieve\sthe\sbest\sthing\sis\sto\sapply\sboth\spatches\sto\stls.\r\nAfter\sthese\spatches,\stls\sshould\scontinue\sto\soperate\ssuccessfully\r\neverywhere\sit\salways\shas,\sand\sin\saddition\sfunction\scorrectly\swith\r\nthe\scurrent\sTcl\strunk.\r\n\r\nWhat's\shappening\sis\sthat\sduring\sthe\shandshake\sprocessing,\r\nan\sEOF\shappens\son\sthe\slow-level\sencrypted\ssocket.\r\n\r\nUntil\srecently,\sTcl's\sI/O\score\shas\sbeen\sallowing\sEOF\r\nstatus\sflags\sto\sleak\sbetween\slevels\sin\sa\schannel\sstack.\r\nIn\sthis\scase,\sthe\sbug\swas\san\sadvantage\sto\stls\sbecause\sit\scaused\r\nthe\stls::socket\sto\sapparently\salso\spresent\san\sEOF\sstate,\r\nand\sthis\scauses\s[gets]\sto\scomplete\ssuccessfully\sreturning\r\nan\sempty\sstring.\r\n\r\nNow\sthat\sthe\score\sbugs\sare\sfixed,\sthe\sEOF\sdoesn't\sbubble\sup,\r\nand\sso\sthe\sfailed\shandshake\sgets\snoticed\sand\sreported\sas\r\nan\serror.\s\sThe\sfailing\s[gets]\scauses\sthe\stest\sto\sfail.\r\n\s\r\nThe\seof.patch\sadds\sa\stiny\sbit\sof\scode\sto\sexplicitly\snotice\r\nthe\slow-level\sEOF\sand\sexplicitly\sraise\sit\sagain\sat\sthe\shigher\r\nlevel.\r\n\r\nAn\sadditional\schange\sthat\smight\sbe\sworthwhile\sis\sto\s[catch]\r\nthe\s[gets]\sin\sthe\stest.\s\sThe\spurpose\sof\sthe\stest\sis\sto\sverify\r\nthat\s[readit]\sis\scalled\sat\sall,\snot\swhether\s[gets]\ssucceeds.
J login dgp
J mimetype text/plain
K c31ca233cacd7d6184877c54182f4b3a6ccb30f1
U dgp
Z ac14abb22df93315d7539ac193d65c79