[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-11 Thread Mark Lawrence
Mark Lawrence added the comment: Where did file descriptors come into it, surely this is all about memory leaks? In any case it's hardly a show stopper as there are at least three references above to the problem line of code and three workarounds. -- _

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I see no file descriptor leak myself: >>> f = urllib2.urlopen("http://www.google.com";) >>> f.fileno() 3 >>> os.fstat(3) posix.stat_result(st_mode=49663, st_ino=5045244, st_dev=7L, st_nlink=1, st_uid=1000, st_gid=1000, st_size=0, st_atime=0, st_mtime=0, st_ctim

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: I'd consider reference cycles a bug especially if they prevent filedescriptors from being closed. please read the comments. -- ___ Python tracker _

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The entire description of this issue is bogus. Reference cycles are not a bug, since Python has a cyclic garbage collector. Closing as invalid. -- nosy: +pitrou resolution: -> invalid status: open -> closed ___ Pyth

[issue1208304] urllib2's urlopen() method causes a memory leak

2013-04-10 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1208304] urllib2's urlopen() method causes a memory leak

2011-02-09 Thread gdub
Changes by gdub : -- nosy: +gdub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue1208304] urllib2's urlopen() method causes a memory leak

2010-08-21 Thread Mark Lawrence
Mark Lawrence added the comment: On Windows Vista I can consistently reproduce this with 2.6 and 2.7 but not with 3.1 or 3.2. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue1208304] urllib2's urlopen() method causes a memory leak

2010-07-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Pytho

[issue1208304] urllib2's urlopen() method causes a memory leak

2009-09-04 Thread clemens pecinovsky
clemens pecinovsky added the comment: i also ran into the problem of cyclic dependencies. i know if i would call gc.collect() the problem would be solved, but calling gc.collect() takes a long time. the problem is the cyclic dependency with r.recv=r.read i have fixed it localy by wrapping the

[issue1208304] urllib2's urlopen() method causes a memory leak

2009-06-03 Thread BULOT
BULOT added the comment: Hello, I'm facing a urllib2 memory leak issue in one of my scripts that is not threaded. I made a few tests in order to check what was going on and I found this already existing bug thread (but old). I'm not able to figure out what is the issue yet, but here are a few

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-12-01 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > Reopening: I reproduce the problem consistently with both 2.6 and trunk > versions (not with python 3.0), on Windows XP. > I think this bug is ONLY with respect to Windows Systems.

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-28 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: -- components: +Library (Lib) -Extension Modules type: -> resource usage versions: +Python 2.5, Python 2.6, Python 2.7 -Python 2.4 ___ Python tracker <[EMAIL PROTECTED]>

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Reopening: I reproduce the problem consistently with both 2.6 and trunk versions (not with python 3.0), on Windows XP. -- nosy: +amaury.forgeotdarc resolution: wont fix -> status: closed -> open __

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-24 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Python 2.4 is now in security-fix-only mode. No new features are being added, and bugs are not fixed anymore unless they affect the stability and security of the interpreter, or of Python applications. http://www.python.org/download/releases/2.

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-23 Thread Toshio Kuratomi
Toshio Kuratomi <[EMAIL PROTECTED]> added the comment: One further data point. On two rhel5 systems with identical kernels, both x86_64, both python-2.4.3... basically, everything I've thought to check identical, I ran the test code with f.read() in an infinite loop. One system only has one TC

[issue1208304] urllib2's urlopen() method causes a memory leak

2008-11-23 Thread Toshio Kuratomi
Toshio Kuratomi <[EMAIL PROTECTED]> added the comment: I tried to repeat the test in http://bugs.python.org/msg60749 and found that the descriptors will close if you read from the file before closing. so this leads to open descriptors:: import urllib2 f = urllib2.urlopen('http://www.google.