Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 09e39bed2f6e65359a222f8f42c537a91c41aa2b
Ticket: 217765ffffffffffffffffffffffffffffffffff
HTTP package leaves sockets open in some error cases.
User & Date: nobody on 2000-10-26 00:33:15
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5741 Bug
    SubmitDate: '2000-05-29'
    LastModified: '2000-08-14'
    Severity: SER
    Status: Released
    Submitter: sandeep
    ChangedBy: key
    OS: All
    FixedDate: '2000-06-12'
    FixedInVersion: 2.0
    ClosedDate: '2000-08-14'
    
    
    Steps To Reproduce:
    1. Run the following script:
    
    package require http
    set chanCount [llength [file channels]]
    for {set i 0} {$i<200} {incr i} {
        catch {http::geturl [info host]:9876 -timeout 10000}
    }
    set endChanCount [llength [file channels]]
    puts "Open Channel Diff: [expr $endChanCount-$chanCount]"
    
    Expected Result:
    0.  There should be no difference.
    
    Actual Result:
    200.  All of the connection attempts failed, but the sockets, state array, after events, etc. were never cleared.
    
    
    
    This leaks socket handles, pretty serious.
     
    -- 05/30/2000 redman
    
    The socket leaking is fixed, and http::wait no longer throws exceptions. 
    -- 05/30/2000 sandeep
    
  4. foundin changed to: ""
  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 package leaves sockets open in some error cases.
    
  11. type changed to: "Bug"