summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-25 01:42:23 +0800
committerLance Stout <lancestout@gmail.com>2011-11-25 01:45:43 +0800
commit4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc (patch)
treec9511b3794d038cc0b25b7030084449e5eb6dc86
parenta1d64fa215b56a948f5e55df8f9d21aadccd0e97 (diff)
downloadslixmpp-4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc.tar.gz
slixmpp-4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc.tar.bz2
slixmpp-4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc.tar.xz
slixmpp-4eb7eeb40f14ae8026ff4a1f3f74f5d217acabbc.zip
Send the encoded data (bytes) and not the str, on the socket.
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 30027ece..d9b78129 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -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: