[Python-bugs-list] [ python-Bugs-598797 ] HTTPConnection memory leak
SourceForge.net
noreply@sourceforge.net
Wed, 08 Jan 2003 07:41:32 -0800
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mark Moales (mmoales)
Assigned to: Nobody/Anonymous (nobody)
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: Mark Moales (mmoales)
Date: 2003-01-08 10:36
Message:
Logged In: YES
user_id=565165
Go ahead and close the bug because it appears to be fixed in 2.2.2. Sorry for not following up on
this sooner.
Thanks.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-07 20:05
Message:
Logged In: YES
user_id=33168
Mark, are you still having problems with 2.2.2 or can we
close this bug?
----------------------------------------------------------------------
Comment By: Jeremy Hylton (jhylton)
Date: 2002-10-11 13:20
Message:
Logged In: YES
user_id=31392
Doesn't look like this is still a problem, but waiting to
close until we hear for certain.
----------------------------------------------------------------------
Comment By: Mark Moales (mmoales)
Date: 2002-09-03 13:54
Message:
Logged In: YES
user_id=565165
I was able to get 2.3 to build (with the latest stuff from CVS)
and the problem seems to be fixed. I'll try and update 2.2.1
when I have some time and test that. Thanks!
----------------------------------------------------------------------
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