Skip to content
Tcl Source Code Artifact [998a538a67]
Login

Artifact [998a538a67]

Artifact 998a538a674909d1f23e9438d5cb143aa2b76290:

Ticket change [998a538a67] - New ticket [218601ffffffffff|218601ffff] <i>::http::CopyDone try to eof a closed channel and don&#39;t catch</i>. by nobody on 2000-10-26 01:02:58.
D 2000-10-26T01:02:58
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1406\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-11-03'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sLinux\nOSVersion:\sslackware\s3.5,\skernel\s2.0.36,\sruntime\slibs\sfor\sglibc2\nMachine:\sOther\nFixedDate:\s'1999-11-03'\nFixedInVersion:\s8.2.2\nClosedDate:\s'2000-10-25'\n\n\nName:Luc\sDeschenaux\n\nReproducibleScript:\n#I'm\snot\ssure\sI'm\susing\s8.0.3...\smaybe\s8.0.4...\n#The\serror\soccurs\safter\sa\s::http::reset\sduring\sa\s\n#catch\s{::http::geturl\shttp://localhost/file\s-channel\s$fileChan\s-progress\s#http_progress\s-timeout\s30000\s-headers\s{Pragma\sno-cache}}\n#http_progress\sis\scalling\supdate.\n#::http::reset\sis\scalled\sfrom\sthe\sbutton\s-command\soption\sof\sthe\sprogress\sdialog\s#"Abort"\sbutton.\nglobal\stoken\nset\sw\s.progress\ntoplevel\s$w\nset\sb\s[button\s$w.button#1\s-command\s{::http::reset\s$token}]\npack\s$b\nset\sf\s[open\s$name\sw]\nif\s{![catch\s{::http::geturl\shttp://localhost/file\s-channel\s$f\s-timeout\s30000\s-headers\s{Pragma\sno-cache}\s-progress\shttp_progress}]}\s{}\nclose\s$f\ncatch\s{destroy\s$w}\n\nproc\shttp_progress\s{tok\stotal\scur}\s{\n\s\s\s\sglobal\stoken\n\s\s\s\sset\stoken\s$tok\n\s\s\s\supdate\n}\n\nObservedBehavior:\nI\scan't\scatch\sthe\serror..\sit\soccurs\swhen\sthe\suser\sabort\sa\shttp\stransfer\n(I\ssaw\sit\stesting\sauto-update\sin\smy\sapplication...\sthat\ssucks..)\n(I\sneed\sto\scatch\sall\serrors\sto\sbe\sable\sto\sdo\sbatch\stransfers\swithout\suser\sinteraction)\n\nSTACK\sTRACE_______________________________________________\n\ncan\snot\sfind\schannel\snamed\s"sock5"\n\s\s\s\swhile\sexecuting\n"::eof\s$s"\n\s\s\s\s(procedure\s"http::CopyDone"\sline\s11)\n\s\s\s\sinvoked\sfrom\swithin\n"http::CopyDone\s::http::4\s8192"\n\nDesiredBehavior:\nI\sexpect\syou\sreplace\s"::eof\s$s"\swith\s"catch\s{::eof\s$s}"\swithin\sprocedure\shttp::CopyDone,\sline\s11\sbut...\s:)\sI\sshould\sbe\sable\sto\sdoit...\sI've\sgot\sthe\ssource..\s:)\sok\sI\sinstall\sthe\slatest\sversion\sso\sthat\sI'm\ssure\sI've\sgot\s8.0.4\sand\sif\spackage\shttp\sis\snot\sbyte\scompiled\sand\snot\sfixed\sI\schange\sit\sand\sI\spost\sthe\spatch\shere..\s\n\n\n\nThe\snecessary\scatches\sare\sin\shttp2.1\sof\sTcl8.2.2.\s\n--\s11/03/1999\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title ::http::CopyDone\stry\sto\seof\sa\sclosed\schannel\sand\sdon't\scatch
J type Bug
K 218601ffffffffffffffffffffffffffffffffff
U nobody
Z b7b58ff4837a0c58c3f8c2e04096905d