Message126919
With this code on python 2.6, I found that HTTPSConnection does not close connection properly.
from httplib import HTTPSConnection
for i in range(1000):
https = HTTPSConnection("google.com")
https.connect()
https.request("GET", "/")
response = https.getresponse()
response.close()
https.close()
print i
After searching python library, I guess that in ssl.py, implementation of close() method of SSLSocket is wrong.
socket.close(self) should not be called when self._makefile_refs < 1 but should be call when self._makefile_refs == 1, isn't it?
I modified the code, made the patch and attached it with this issue. |
|
Date |
User |
Action |
Args |
2011-01-24 10:51:43 | tanakorn | set | recipients:
+ tanakorn |
2011-01-24 10:51:43 | tanakorn | set | messageid: <1295866303.79.0.709048263214.issue10993@psf.upfronthosting.co.za> |
2011-01-24 10:51:43 | tanakorn | link | issue10993 messages |
2011-01-24 10:51:43 | tanakorn | create | |
|