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

noreply@sourceforge.net noreply@sourceforge.net
Sat, 20 Apr 2002 00:53:54 -0700


Bugs item #544234, was opened at 2002-04-15 17: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: Closed
>Resolution: Fixed
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.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-04-20 09:53

Message:
Logged In: YES 
user_id=21627

This is now fixed with patch 500311.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-15 23:24

Message:
Logged In: YES 
user_id=21627

Can you please try http://python.org/sf/500311? Feedback on
this patch would be much appreciated.

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

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