Artifacts Associated With Ticket 218601ffffffffff
Ticket change [998a538a67] (rid 110814) by nobody on 2000-10-26 01:02:58:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1406 Bug Version: 8.0.4 SubmitDate: '1999-03-02' LastModified: '1999-11-03' Severity: SER Status: Released Submitter: pat ChangedBy: hobbs OS: Linux OSVersion: slackware 3.5, kernel 2.0.36, runtime libs for glibc2 Machine: Other FixedDate: '1999-11-03' FixedInVersion: 8.2.2 ClosedDate: '2000-10-25' Name:Luc Deschenaux ReproducibleScript: #I'm not sure I'm using 8.0.3... maybe 8.0.4... #The error occurs after a ::http::reset during a #catch {::http::geturl http://localhost/file -channel $fileChan -progress #http_progress -timeout 30000 -headers {Pragma no-cache}} #http_progress is calling update. #::http::reset is called from the button -command option of the progress dialog #"Abort" button. global token set w .progress toplevel $w set b [button $w.button#1 -command {::http::reset $token}] pack $b set f [open $name w] if {![catch {::http::geturl http://localhost/file -channel $f -timeout 30000 -headers {Pragma no-cache} -progress http_progress}]} {} close $f catch {destroy $w} proc http_progress {tok total cur} { global token set token $tok update } ObservedBehavior: I can't catch the error.. it occurs when the user abort a http transfer (I saw it testing auto-update in my application... that sucks..) (I need to catch all errors to be able to do batch transfers without user interaction) STACK TRACE_______________________________________________ can not find channel named "sock5" while executing "::eof $s" (procedure "http::CopyDone" line 11) invoked from within "http::CopyDone ::http::4 8192" DesiredBehavior: I expect you replace "::eof $s" with "catch {::eof $s}" within procedure http::CopyDone, line 11 but... :) I should be able to doit... I've got the source.. :) ok I install the latest version so that I'm sure I've got 8.0.4 and if package http is not byte compiled and not fixed I change it and I post the patch here.. The necessary catches are in http2.1 of Tcl8.2.2. -- 11/03/1999 hobbs - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
::http::CopyDone try to eof a closed channel and don't catch
- type initialized to: "Bug"
Ticket change [8aa81370bf] (rid 127428) by welch on 2000-10-26 08:25:10:
- closedate changed to: "2000-10-26T01:25:10"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Deleted"
Ticket change [157dca0903] (rid 124572) by dgp on 2001-04-16 23:13:04:
- subsystem changed to: "29. http Package"
Ticket change [3c157a270b] (rid 120855) by dgp on 2001-04-16 23:13:05:
- closedate changed to: "2001-04-16T16:13:05"
- closer changed to: "dgp"