[Python-bugs-list] [ python-Bugs-544234 ] httplib cannot talk SSL to MS IIS

noreply@sourceforge.net noreply@sourceforge.net
Mon, 15 Apr 2002 08:53:02 -0700


Bugs item #544234, was opened at 2002-04-15 16:53
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=544234&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Ribbens (jribbens)
Assigned to: Nobody/Anonymous (nobody)
Summary: httplib cannot talk SSL to MS IIS

Initial Comment:
This is a duplicate of bug 494762. That bug was closed 
as "invalid", however what I don't think was 
appreciated at the time is that it is not just that 
one server that has this problem, it is a generic 
problem with MS IIS servers.

The choices are:

  (a) leave the code like it is, Python can't talk SSL 
to MS IIS servers
  (b) persuade Microsoft to fix their code, and then 
persuade every MS IIS installation on the planet to 
upgrade
  (c) put a work-around in the Python code

Since I hope that both (a) and (b) are obviously 
unacceptable, I think a suitable work-around would be 
to add another clause to the except statement in 
FakeSocket.makefile as follows:

  if err[1] == "EOF occurred in violation of protocol":
    break

i.e. treat that error as EOF, because that's what it 
actually means.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=544234&group_id=5470