[Python-bugs-list] [ python-Bugs-675552 ] settimeout with httplib and SSL is broken

SourceForge.net noreply@sourceforge.net
Mon, 27 Jan 2003 08:54:14 -0800


Bugs item #675552, was opened at 2003-01-27 11:54
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=675552&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Geoff Talvola (gtalvola)
Assigned to: Nobody/Anonymous (nobody)
Summary: settimeout with httplib and SSL is broken

Initial Comment:
This is with Python 2.3a1 on Windows NT.

Assume that Pause30.cgi is a CGI script that just waits
30 seconds and then returns a simple response.

This code works fine:

	import httplib
	conn =
httplib.HTTPConnection('ncsdevtest.nameconnector.com', 80)
	conn.connect()
	conn.sock.settimeout(TIMEOUT)
	conn.request('GET', '/cgi-bin/Pause30.cgi')
	response = conn.getresponse()
	print response.status, response.reason
	data = response.read()
	print 'read', len(data), 'bytes'
	conn.close()

If TIMEOUT is less than 30 seconds, I get a timeout,
otherwise I get the response as expected.  This is all
good.

If I change HTTPConnection to HTTPSConnection and 80 to
443, I have trouble -- my CPU usage goes up to 100%,
the python process sucks up more and more memory, and
it doesn't time out even if TIMEOUT is less than 30.

(This might be related to bug 673797.)



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

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