Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-20
01:57 • Ticket [218371ffff] A non-secure http::geturl transaction to a secure site fails... artifact: a3d1224655 user: dgp
2000-10-26
08:20 • Deleted ticket [218371ffff]. artifact: a74c384d84 user: welch
00:56 • New ticket [218371ffff]. artifact: ffc21cdbdc user: nobody

A non-secure http::geturl transaction to a secure site fails

Deleted218371ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:48
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
welch Deleted ticket [218371ffff]. [History diff]2000-10-26 08:20:09
dgp Ticket [218371ffff]: 3 changes [History diff]2001-04-20 01:57:00
Log in (anonymous is fine) to add a comment.