X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2FSSLConnection.py;h=3e72d5e1d5c897e21af1b4026660520f2a363cce;hp=93fabb6de98a138f35a390a6935c2cf8f813315c;hb=HEAD;hpb=7c0ab04b1f86814f50f33e0601398fa4e845e934 diff --git a/certmaster/SSLConnection.py b/certmaster/SSLConnection.py index 93fabb6..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 @@ -99,7 +99,7 @@ class SSLConnection: if hasattr(data, 'tobytes'): data = data.tobytes() - + starttime = time.time() origlen = len(data) sent = -1