<i>doesn't cleanup from certain errors.</i> status still Open with 4 other changes
by
.
D 2003-07-18T02:09:54
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nUse\shttpd\son\swindows\sfor\sthis.\s\sYou'll\sget\sthat\sserver\ssocket\s\nproblem\swhere\sclients\sare\stold\sconnect,\sbut\sthe\ssocket\sisn't\s\nactually\saccepted\son\sthe\sserver\sside.\s\sHappens\sat\sabout\s16\s\nrequests\sper\ssecond\son\sa\s500mHz\spIII.\n\nUse\ssomething\slike\sthis:\n\npackage\srequire\shttp\n\nproc\sm_httpCallback\s{token}\s{\n\s\s\s\sglobal\showmuch\n\s\s\s\sset\sstatus\s[::http::status\s$token]\n\s\s\s\s::http::cleanup\s$token\n\s\s\s\sputs\s"[incr\showmuch\s-1]\s$status"\n\s\s\s\sif\s{$howmuch\s==\s0}\s{puts\sDone!}\n}\n\nproc\sgetem\s{url\scount}\s{\n\s\s\s\sglobal\showmuch\n\s\s\s\sset\showmuch\s$count\n\s\s\s\sfor\s{set\si\s$howmuch}\s{$i\s!=\s0}\s{incr\si\s-1}\s{\n::http::geturl\s$url\s-command\s[list\sm_httpCallback]\n\s\s\s\s}\n}\n\ngetem\shttp://localhost\s200\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 705956ffffffffffffffffffffffffffffffffff
U davygrvy
Z d1f3f28b59fd32524ef56d933f29cef5