From b8a4ffece9d176b4b9a594681fa58668f2cad42f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 25 Aug 2011 15:08:45 -0700 Subject: Handle sending stanzas in chunks if the socket has poor performance. --- sleekxmpp/test/mocksocket.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/test/mocksocket.py') 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 -- cgit v1.2.3