<i>Busyloop in vwait in innocent HTTP code</i> status still Open with 4 other changes
by
.
D 2009-11-12T04:00:10
J icomment more\snotes,\scopied\sfrom\sthe\schat.\n\n[12:33]dgpaku?\n[12:34]aku?\n[12:34]dgpFor\sa\schannel\swith\sChannelState\sfield\s"encoding\s==\sNULL"\n[12:34]dgpthat's\smeant\sto\sbe\sinterpreted\sas\s"-encoding\sbinary"\s?\n[12:34]akuAFAIK\syes\n[12:35]dgpI\sthink\sthe\sbinary\stransfer\srules\sof\sCopyData\sare\sbroken\sthen\stoo.\n[12:36]dgpIf\sthe\sout\schannel\sis\s-encoding\sbinary\n[12:36]dgpand\sthe\sin\schannel\sis\snot.\n[12:37]dgpthen\sthe\sin\schannel\sreads\swith\sDoReadChars\sputting\sthe\sdata\sinto\sthe\sinternal\sTcl\sencoding\sin\sthe\sprocess.\n[12:37]dgpCopyData\sthen\sjust\scopies\sthese\sbytes\sout\n[12:37]dgpand\sthat's\snot\swhat\s-encoding\sbinary\sis\ssupposed\sto\smean,\sAIUI\n[12:38]aku...\sLooking\s...\sOk,\syes\s...\sThe\sDoWriteChars\shas\sthis\sspecial\srecoding\sthing\sgoing\son,\sand\sDoWrite\sdoesn't\s...\s\n[12:39]dgpI'm\smaking\sguesses\sabout\swhat\sDoWrite()\sdoes\sI\ssuppose.\n[12:39]aku(DoWriteChars\sline\s3357\s(8.5-branch))\n[12:39]akuNo,\sI\slooked\sinto\sDoWrite,\sand\sdoes\sEOL\stranslation\sonly,\ssee\smy\snotes\sin\sthe\sbug\sreport\n[12:41]akuso,\sit\sseems\swe\shave\sto\sforget\sin/outBinary,\sand\suse\sonly\ssameEncoding\sto\sswitch\sbetween\sthe\sDo*\sfunctions.\n[12:41]akuAnd\sthe\sDo*Chars\sthen\sinternally\shandle\s-encoding\sbinary\n[12:41]akuif\sneeded\n[12:42]dgpthe\sother\swrinkle\sis\sthat\s[fcopy]\sdocs\ssay\sthe\s-size\sargument\sis\sthe\snumber\sof\sbytes\sto\scopy\n[12:43]dgpIf\sthat\snumber\sof\sbytes\sleaves\sus\sin\sthe\smiddle\sof\sa\smulti-byte\scharacter,\smy\sinterpretation\sis\sthe\spartial\scharacter\sdoes\snot\sget\scopied.\n[12:44]akuew\s...\sI\sbelieve\sit\smay\sbe\seasier\sto\streat\sthis\sas\sdoc\sbug,\sbytes\sonly\sif\s-encoding\sbinary\son\sinput,\sotherwise\schars\sin\sthe\sencoding.\n[12:44]Out\sof\sa\scloud\sof\ssmoke,\semiliano\sappears!\n[12:45]dgpchars\sare\susually\smore\ssensible\sthings\sto\scount\sat\sthe\sscript\slevel.\n[12:45]kostix\sis\saway\s(Automatically\saway\sdue\sto\sidle)\n[12:45]dgpand\sfor\s-encoding\sbinary\schannels\schars\sare\sbytes\n[12:45]akuOh\s...\sI\sjust\sread\sthis\s...\sIf\sonly\sthe\soutput\schannel\sis\sset\sto\s\sencoding\s\s"binary"\s\sthe\s\ssystem\n\s\s\s\s\s\s\swill\s\swrite\s\sthe\sinternal\sUTF-8\srepresentation\sof\sthe\sincoming\scharacters\n[12:45]dgpoh\n[12:46]akuIOW,\sfcopy\sseems\sto\shave\sa\sspecial\sinterpretation\sfor\s-encoding\sbinary\son\sthe\soutput,\swhich\sthe\simplementation\sis\snot\shonoring\n[12:46]dgpno\sthat's\swhat\sthe\simplementationj\sis\sdoing.\n[12:46]dgpJust\sbizarre\sthat\sa\s-encoding\sbinary\sconfiguration\son\sa\schannel\smeans\ssomething\sdifferent\sto\sa\s[puts]\sthan\sit\sdoes\sto\san\s[fcopy]\n[12:47]akuSure\s?\sThere\sis\sthis\sGetByteArrayFromObj\sgoing\son\sin\sDoWriteChars\n[12:47]akuAnd\sfor\sthe\sinput\sas\swell\sit\sseems,\shave\syou\sfcopy.n\sopen\s?\n[12:47]dgpwhen\soutBinary\sis\strue,\sDoWrite()\sis\scalled\n[12:47]akuRight!\sThay\smay\snow\sexplain\swhy\sthat\sis\sdone\n[12:48]dgpsome\sarcheology\sin\sorder\n[12:48]akuThere\sis\salso\s...\sIf\sonly\sthe\sinput\schannel\sis\sset\sto\sencoding\s"binary"\sthe\ssystem\swill\sassume\sthat\sthe\n\s\s\s\s\s\s\sincoming\sbytes\sare\svalid\sUTF-8\scharacters\n[12:48]dgpDid\sthe\sdocs\scome\sfirst,\sor\sjust\srecord\sthe\sbotch\srather\sthan\sfix\sit.\n[12:48]akuThat\sexplain\sthe\sDoRead\son\sinput\sinBinary\n[12:48]dgpCause\sthis\sis\sjust\stoo\sweird\n[12:48]akudocs\svs\scode\s-\stimeline\sordering\s-\sI\sdo\snot\sremember\n[12:49]akuQuite\n[12:49]dgpI'll\sexplore\sa\sbit\smore\n[12:49]akuThanks\n[12:49]akuShall\sI\scopy\sthis\sdiscussion\sand\sadd\sto\sthe\sbug\srpeort,\sas\sadditional\snotes\s?\n[12:49]dgpok\n[12:50]dgp[fcopy]\sis\snow\s[chan\scopy]\s?\n[12:50]akuIIRC\syes\n[12:50]dgpand\s[chan]\sis\s8.5\sor\s8.6?\n[12:50]aku8.5\salready\n[12:50]dgpOne\soption\s(not\ssure\sI\slike\sit\syet)....\n[12:51]dgp...is\sto\sjust\sleave\s[fcopy]\suntouched.\n[12:51]dgpdeclare\sit\sirretrievably\sconfused.\n[12:51]dgpand\sstart\sover\sand\sget\s[chan\scopy]\ssensibly\scorrect.\n[12:52]akuI\shave\sto\sadmit,\sI\sdo\snot\slike\sthat\seither.\sOTOH\sit\smay\sbe\sour\sbest\sbet\sgoing\sforward,\sleaving\sthe\sfcopy\scompatible,\sand\sfixing\sthe\sbug\sis\sto\schange\sfcopy\sfor\schan\scopy\sin\snewer\scode\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2895565fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 4afa89fb1fc2f2715913472459c21ed3