Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ffc21cdbdc7ca528e98bdd830af8ab8a963fb154
Ticket: 218371ffffffffffffffffffffffffffffffffff
A non-secure http::geturl transaction to a secure site fails
User & Date: nobody on 2000-10-26 00:56:48
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4249 Bug
    Version: 8.3
    SubmitDate: '2000-02-25'
    LastModified: '2000-05-10'
    Severity: MED
    Status: Closed
    Submitter: mroe
    ChangedBy: welch
    OS: All
    FixedDate: '2000-10-25'
    FixedInVersion: 8.3.1
    ClosedDate: '2000-05-10'
    
    
    Steps To Reproduce:
    1. In a tclsh8.3
    
    package require http
    set tok [http::geturl http://elche:8016]
    http::status $tok
    
    Expected Result:
    Either geturl should throw an exception stating that the connection failed, or $tok should have a status of ioerror
    
    Actual Result:
    http::status returns "eof".
    
    
    
    Edited for clarity (and reproducibility). -- Sandeep & Mitch
    
    -- 04/03/2000 sandeep
    
    Thinking about this further, I think that the user should accept anything that's not "ok" status as being some kind of error that they have to deal with.  So, then this wouldn't really be a bug.  Plus, even if there were a way to determine if a socket connection had failed in this case (right now, the connection is considered to have succeeded until much later in processing), marking it as ioerror would break backwards compatibility (for the 1-2 people in the world who MIGHT have run into this). 
    -- 04/03/2000 sandeep
    
    The HTTP client can't do anything different, really.
    The remote server simply closes the socket when the client
    fails to do the SSL handshake, so to the "eof" status is
    consistent.  There are other weird things that can happen that
    result in no server reply, and there really isn't anything the
    client can do to tell this apart.  I'm declaring "victory" over
    this bug - its a feature.  The only remaining choice is to raise
    an error in the eof state, but thats an interface change. 
    -- 05/10/2000 welch
    
    
    
  4. foundin changed to: "obsolete: 8.3"
  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:
    A non-secure http::geturl transaction to a secure site fails
    
  11. type changed to: "Bug"