Send the encoded data (bytes) and not the str, on the socket.
This commit is contained in:
parent
a1d64fa215
commit
4eb7eeb40f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue