.
D 2022-09-11T16:36:35.493
J closer nobody
J comment When\sretrieving\sa\sfile\sfrom\schunked+gzip\senabled\sserver\s(SourceForge\sproject\sweb)\sI\sgot\sconstantly\struncated\sresult.\sFile\ssize\swas\salways\san\sexact\smultiple\sof\s64k\sbytes\sand\swas\smissing\sthe\stail.\sIt\sseems\sthat\shttp::CopyChunk\strusts\sthere\scan't\sbe\smore\sdata\sleft\son\sdecompression\sbuffer\sthan\sone\s/stream\sget/\scan\sreturn\sand\sdoes\sonly\sone\sround\sof\sgets\s(using\s/add\s-finalize/).\sAttached\spatch\s(agains\score.tcl.tk\sversion\sof\sfile)\sfixed\sthe\sproblem\sfor\sme,\sbut\sI'm\snot\squite\ssure\sif\sthe\sencoder\schaining\s(the\sreason\sto\sforeach\sstreams?)\shas\sbeen\staken\sinto\saccount\scorrectly.\r\n\r\nAs\sa\sside\snote,\sMAX_BUFFER_SIZE\shas\sbeen\sdeclared\sas\s65536\sbut\sis\sbeing\sreferred\sas\s"65k"\selsewhere\sin\sthe\sfile\shttp.tcl.
J icomment I\scould\snot\sfind\sa\ssuitable\sURL\sthat\suses\schunked\sencoding\sand\sgzip.\r\n\r\nHowever,\sthe\stest\shttp11-2.1\sdoes\sexactly\swhat\swe\sneed,\sand\sit\swas\sa\smatter\sof\sfinding\sa\sfile\ssize\sthat\striggered\sthe\sbug\s-\sthis\sis\snow\stest\shttp11-2.1.1.\r\n\r\nThe\spatch\sprovided\sby\skaitzschu\sfixes\sthe\sbug.\sThis\spatch\sis\snow\sapplied\sin\scommit\s[3cee774ebf]\sof\sbranch\shttp-bugfixes-2022H2.\s\sHowever,\s<b>I\shave\sno\sexpertise\sin\sthe\suse\sof\schannels,\sand\sI\swould\sappreciate\sa\sreview\sof\sthis\scode.</b>\r\n\r\nThe\sticket\sreports\s"File\ssize\swas\salways\san\sexact\smultiple\sof\s64k\sbytes\sand\swas\smissing\sthe\stail."\s\sI\shave\schanged\sthe\ssize\sof\sthe\schunks\ssent\sby\sthe\sserver\stests/httpd11.tcl\sfrom\s512\sbytes\sto\s671\sbytes,\sin\sthe\shope\sthat\smaking\sthe\ssize\snot\sequal\sto\sa\spower\sof\s2\swould\simprove\sthe\stests.\s\sNo\sother\stest\sfailures\swere\sfound.
J login kjnash
J mimetype text/x-fossil-wiki
J resolution Fixed
J severity Minor
J status Pending
K 3610253fffffffffffffffffffffffffffffffff
U kjnash
Z c85a18828ab5bf1b0dcb63a3dab9ab03