X-Git-Url: https://pwan.org/git/?a=blobdiff_plain;f=certmaster%2FSSLConnection.py;h=93fabb6de98a138f35a390a6935c2cf8f813315c;hb=7c0ab04b1f86814f50f33e0601398fa4e845e934;hp=c266906f35b5f27f7e5ab1f57c896e3cdc2658c9;hpb=2108f87ee704ac86f5a6b924c03afc86e0fa617d;p=certmaster.git 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