[issue38251] urllib.request memory leak / overflow

2019-09-23 Thread Ofer Sadan
Ofer Sadan added the comment: I appreciate the suggestion and the update, thank you! -- ___ Python tracker ___ ___

[issue38251] urllib.request memory leak / overflow

2019-09-23 Thread Christian Heimes
Christian Heimes added the comment: Yes, the problem will be fixed by 3.7.5. In the mean time you can work around the issue by creating a single SSLContext object with ssl.create_default_context() and reusing it for all requests. It's also much more efficient to reuse a single context for

[issue38251] urllib.request memory leak / overflow

2019-09-23 Thread Ofer Sadan
Ofer Sadan added the comment: I can confirm that testing with http instead of https this problem doesn't exist, on 3.7.4. Are the issues closed because this problem is fixed in the upcoming 3.7.5, or 3.8.0? -- ___ Python tracker

[issue38251] urllib.request memory leak / overflow

2019-09-23 Thread hongweipeng
hongweipeng added the comment: My Windows 10 (64bit). There is no such problem in 3.6.1, but 3.7.0 has. And when requesting `http://...`, both of them are normal. By the way, the related issues are all closed, is it supposed to reopen one? -- ___

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Steve Dower
Steve Dower added the comment: Closing as a duplicate of issue35941 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> ssl.enum_certificates() regression ___ Python tracker

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread hongweipeng
Change by hongweipeng : -- nosy: +hongweipeng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Kumar Akshay
Kumar Akshay added the comment: Yes, https://bugs.python.org/issue37498 is indeed the same issue -- ___ Python tracker ___ ___

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this related to https://bugs.python.org/issue35941 given that it's related to windows. Similar report https://bugs.python.org/issue37498 -- nosy: +xtreak ___ Python tracker

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Kumar Akshay
Kumar Akshay added the comment: JFYI, Not reproducible on macOS. -- nosy: +kakshay ___ Python tracker ___ ___ Python-bugs-list

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Ofer Sadan
Ofer Sadan added the comment: Just to note: I'm using Python 3.7.4 on Windows 10 (64bit), the issue exists on both the 32bit/64bit python versions I could test on. -- ___ Python tracker

[issue38251] urllib.request memory leak / overflow

2019-09-22 Thread Ofer Sadan
New submission from Ofer Sadan : running `urllib.request.urlopen` multiple times causes the memory usage to increase with each run, even after calling `close()` on the request or using `del` on the result To recreate this problem, run code: import urllib.request def ip(): r