X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2FSSLConnection.py;h=3e72d5e1d5c897e21af1b4026660520f2a363cce;hp=4d4c1620b17ee973b95c734fa135ed6f62b4a924;hb=c11b1babbe56144f39212e4b453c4519e0521ca6;hpb=d7a437a33c7767917fdc963953a39286a01db696 diff --git a/certmaster/SSLConnection.py b/certmaster/SSLConnection.py index 4d4c162..3e72d5e 100644 --- a/certmaster/SSLConnection.py +++ b/certmaster/SSLConnection.py @@ -62,7 +62,7 @@ class SSLConnection: c, a = self.__dict__["conn"].accept() return (SSLConnection(c), a) - def makefile(self, mode, bufsize): + def makefile(self, mode='r', bufsize=-1): """ We need to use socket._fileobject Because SSL.Connection doesn't have a 'dup'. Not exactly sure WHY this is, but