Commit e5f47355 authored by Denis Bilenko's avatar Denis Bilenko

fix GreenSSL.makefile not leak GreenSSL instances

parent da0951ca
......@@ -336,7 +336,7 @@ class GreenSSL(GreenSocket):
def makefile(self, mode='r', bufsize=-1):
self._makefile_refs += 1
return _fileobject(self, mode, bufsize)
return _fileobject(self, mode, bufsize, close=True)
def close (self):
if self._makefile_refs < 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment