X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2FSSLConnection.py;h=93fabb6de98a138f35a390a6935c2cf8f813315c;hp=c266906f35b5f27f7e5ab1f57c896e3cdc2658c9;hb=7c0ab04b1f86814f50f33e0601398fa4e845e934;hpb=a65d25302707eea8c109735a983f082a3f485c14 diff --git a/certmaster/SSLConnection.py b/certmaster/SSLConnection.py index c266906..93fabb6 100644 --- a/certmaster/SSLConnection.py +++ b/certmaster/SSLConnection.py @@ -97,6 +97,9 @@ class SSLConnection: if not con in write: raise socket.timeout((110, "Operation timed out.")) + if hasattr(data, 'tobytes'): + data = data.tobytes() + starttime = time.time() origlen = len(data) sent = -1