diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-25 15:08:45 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-25 15:08:45 -0700 |
commit | b8a4ffece9d176b4b9a594681fa58668f2cad42f (patch) | |
tree | 074259ff3b75271bed14b5eac2e331de067533e7 /sleekxmpp/test | |
parent | d929e0deb2ecc6a4b4da7136cba00cb7492573b7 (diff) | |
download | slixmpp-b8a4ffece9d176b4b9a594681fa58668f2cad42f.tar.gz slixmpp-b8a4ffece9d176b4b9a594681fa58668f2cad42f.tar.bz2 slixmpp-b8a4ffece9d176b4b9a594681fa58668f2cad42f.tar.xz slixmpp-b8a4ffece9d176b4b9a594681fa58668f2cad42f.zip |
Handle sending stanzas in chunks if the socket has poor performance.
Diffstat (limited to 'sleekxmpp/test')
-rw-r--r-- | sleekxmpp/test/livesocket.py | 2 | ||||
-rw-r--r-- | sleekxmpp/test/mocksocket.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/test/livesocket.py b/sleekxmpp/test/livesocket.py index 7dd4693c..80d63307 100644 --- a/sleekxmpp/test/livesocket.py +++ b/sleekxmpp/test/livesocket.py @@ -138,7 +138,7 @@ class TestLiveSocket(object): """ with self.send_queue_lock: self.send_queue.put(data) - self.socket.send(data) + return self.socket.send(data) # ------------------------------------------------------------------ # File Socket diff --git a/sleekxmpp/test/mocksocket.py b/sleekxmpp/test/mocksocket.py index a2af8d6b..0920b7ea 100644 --- a/sleekxmpp/test/mocksocket.py +++ b/sleekxmpp/test/mocksocket.py @@ -121,6 +121,7 @@ class TestSocket(object): if self.disconnected: raise socket.error self.send_queue.put(data) + return len(data) # ------------------------------------------------------------------ # File Socket |