projects
/
certmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
in python 2.7 - the things we are sending can also be a 'memoryview' object
[certmaster.git]
/
certmaster
/
SSLConnection.py
diff --git
a/certmaster/SSLConnection.py
b/certmaster/SSLConnection.py
index
c266906
..
93fabb6
100644
(file)
--- 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