PyPy 7.3.11 SSL module appears to leak memory
@betterdwzhao reported at the end of #3871 (closed):
On top of that, I had another situation appears to leak memory. ps, I use PyPy 7.3.11 and requests==2.27.0.
Python 2.7.18 (646866ee1eabe7bdbdc97b47a40b472991d571e9, Dec 29 2022, 08:10:18)
[PyPy 7.3.11 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux2
Package Version
---------- ---------
certifi 2021.10.8
cffi 1.15.1
chardet 4.0.0
greenlet 0.4.13
idna 2.10
pip 20.3.4
readline 6.2.4.1
requests 2.27.0
setuptools 44.1.1
urllib3 1.26.13
wheel 0.37.1
the test code is this:
import sys
import time
import requests
url = "https://www.bing.com"
while True:
time.sleep(0.1)
response = requests.get(url, timeout=3)
sys.stderr.write('%s.' % response.status_code)
sys.stderr.flush()
After running this code for ten minutes,memory went from 194M to 642M. After that the the trend slowing down,but still increasing.