Overview
| Artifact ID: | 38501554119af840211a07628bceddd835cd107e |
|---|---|
| Ticket: | 705956ffffffffffffffffffffffffffffffffff
http::geturl doesn't cleanup from certain errors. |
| User & Date: | davygrvy on 2003-07-18 02:09:54 |
Changes
- icomment:
Logged In: YES user_id=7549 Use httpd on windows for this. You'll get that server socket problem where clients are told connect, but the socket isn't actually accepted on the server side. Happens at about 16 requests per second on a 500mHz pIII. Use something like this: package require http proc m_httpCallback {token} { global howmuch set status [::http::status $token] ::http::cleanup $token puts "[incr howmuch -1] $status" if {$howmuch == 0} {puts Done!} } proc getem {url count} { global howmuch set howmuch $count for {set i $howmuch} {$i != 0} {incr i -1} { ::http::geturl $url -command [list m_httpCallback] } } getem http://localhost 200 - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"