Artifacts Associated With Ticket 705956ffffffffff
Ticket change [ff675a3539] (rid 108749) by davygrvy on 2003-03-18 23:50:08:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
in http::geturl near the bottom of the proc is this: # if state(status) is error, it means someone's already called Finish # to do the above-described clean up. if {[string equal $state(status) "error"]} { should be: # if state(status) is error, it means someone's already called Finish # to do the above-described clean up. if {![string equal $state(status) "error"]} { See the new ! in the if expression. Now the code matches the comment and also works to close the socket. - foundin initialized to: "obsolete: 8.5a0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "davygrvy"
- subsystem initialized to: "29. http Package"
- title initialized to: "doesn't cleanup from certain errors."
- type initialized to: "Bug"
Ticket change [34a0ea9884] (rid 106782) by hobbs on 2003-07-17 06:23:42:
- icomment:
Logged In: YES user_id=72656 is there an example test to exploit this?
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [218237522d] (rid 130595) by davygrvy on 2003-07-17 07:52:36:
- icomment:
Logged In: YES user_id=7549 no, I don't happen to have one.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [eddcb170c9] (rid 103972) by davygrvy on 2003-07-18 01:34:31:
- icomment:
Logged In: YES user_id=7549 If it's possible to have a connect, then have writes to the socket throw an error, the problem will show itself.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3850155411] (rid 112188) by davygrvy on 2003-07-18 02:09:54:
- 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"
- icomment:
Ticket change [c8ad12e751] (rid 122146) by davygrvy on 2003-12-17 08:24:09:
- title changed to: "http::geturl doesn't cleanup from certain errors."
Ticket change [b99cb189de] (rid 129175) by hobbs on 2004-05-26 05:04:01:
- icomment:
Logged In: YES user_id=72656 This is from change: 2000-05-29 Sandeep Tamhankar <[email protected]> I'm not sure that the comment is correct though. I don't see any negative effect in calling Finish, nor do I see that it is called in the above catch already.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [19e515f791] (rid 122878) by dgp on 2004-05-26 11:30:54:
- icomment:
Logged In: YES user_id=80530 The comment appears correct to me. The only code that sets state(status) to "error" (once the asynchronous [geturl] operations are underway) is in [Finish]. So at line 501... "if state(status) is error, it means someone's already called Finish" is a true statement. I can't say from that what conclusions should be drawn. It's not clear to me whether [Finish] must be called exactly once, no more than once, or any number of times per connection. See my comments at 513385 about the need for a major refactoring of the interwoven nest of routines dealing with cleanup operations.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [cf8ba82814] (rid 113000) by davygrvy on 2004-05-26 11:43:36:
- icomment:
Logged In: YES user_id=7549 but called less than zero, is much too little.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [f8b82566fd] (rid 91589) by patthoyts on 2008-02-29 06:16:12:
- closedate changed to: "2008-02-28T23:16:12"
- closer changed to: "patthoyts"
- icomment:
Logged In: YES user_id=202636 Originator: NO I've applied this
- login: "patthoyts"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "patthoyts"