[Python-bugs-list] [ python-Bugs-598797 ] HTTPConnection memory leak

noreply@sourceforge.net noreply@sourceforge.net
Tue, 03 Sep 2002 09:29:58 -0700


Bugs item #598797, was opened at 2002-08-22 10:37
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=598797&group_id=5470

Category: Python Library
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Moales (mmoales)
Assigned to: Jeremy Hylton (jhylton)
Summary: HTTPConnection memory leak

Initial Comment:
This may be related to bugs 559117 and 592645.

I am using Python 2.2.1 (#34, 4/9/2002) on Windows 
2000 (5.00.2195, Service Pack 2).  Similar to bug 
559117, I see a steady increase of 4K in the size of the 
process after every 10 seconds or so.  Here's my test 
script:

import httplib
import time

for i in range(1000):
    conn = httplib.HTTPConnection("www.python.org")
    conn.request("GET", "/index.html")
    r1 = conn.getresponse()
    time.sleep(0.5)
    conn.close()




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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-09-03 12:29

Message:
Logged In: YES 
user_id=33168

Tim apparently fixed this problem in 2.3, at least he fixed
a problem. :-)

Could you test w/2.3 and/or 2.2.1+ (do a cvs upd -r
release22-maint)?  2.2.1+ has bug fixes that will be rolled
into 2.2.2.

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

Comment By: Mark Moales (mmoales)
Date: 2002-09-03 10:02

Message:
Logged In: YES 
user_id=565165

I built the debug and release versions of 2.2.1 on Windows and still see the problem with both.  I have not had any 
success building 2.3 on Windows.  When I try to build 2.3, I get errors in tokenizer.c.

Just so you know, I have not been able to duplicate the problem on Linux.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-09-01 18:42

Message:
Logged In: YES 
user_id=33168

I can't duplicate this problem on Linux.  I used valgrind
too.  It's possible this problem was fixed.  

Mark, can you build the version from CVS and see if you
still have the problem?  I think there was a memory leak in
this area, but I'm not sure if it effected windows.  I
cannot test on windows.

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

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