Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 998a538a674909d1f23e9438d5cb143aa2b76290
Ticket: 218601ffffffffffffffffffffffffffffffffff
::http::CopyDone try to eof a closed channel and don't catch
User & Date: nobody on 2000-10-26 01:02:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    ::http::CopyDone try to eof a closed channel and don't catch
    
  11. type changed to: "Bug"