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/mocksocket.py | |
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/mocksocket.py')
-rw-r--r-- | sleekxmpp/test/mocksocket.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |