Send the encoded data (bytes) and not the str, on the socket.

This commit is contained in:
Florent Le Coz 2011-11-25 01:42:23 +08:00 committed by Lance Stout
parent a1d64fa215
commit 4eb7eeb40f

View file

@ -1366,7 +1366,7 @@ class XMLStream(object):
try:
while sent < total and not self.stop.is_set():
try:
sent += self.socket.send(data[sent:])
sent += self.socket.send(enc_data[sent:])
count += 1
except ssl.SSLError as serr:
if tries >= self.ssl_retry_max: