[issue38251] urllib.request memory leak / overflow

Christian Heimes report at bugs.python.org
Mon Sep 23 06:25:50 EDT 2019


Christian Heimes <lists at cheimes.de> 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 all requests.

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38251>
_______________________________________


More information about the Python-bugs-list mailing list