telepathy-gabble: gabbletest: set TCP_NODELAY on Twisted' s XMPP server socket

Jonny Lamb jonny at kemper.freedesktop.org
Mon Sep 17 07:08:34 PDT 2012


Module: telepathy-gabble
Branch: master
Commit: 1600f7b3759a095f76754b62de0ad920221bb721
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=1600f7b3759a095f76754b62de0ad920221bb721

Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date:   Fri May  4 11:34:56 2012 +0100

gabbletest: set TCP_NODELAY on Twisted's XMPP server socket

http://i.imgur.com/mWH7b.jpg

Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>

---

 tests/twisted/gabbletest.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 2ee15dd..a696b14 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -397,6 +397,10 @@ class BaseXmlStream(xmlstream.XmlStream):
             self.addObserver("/iq/query[@xmlns='%s']" % ns.PRIVACY,
                              self._cb_priv_list)
 
+    def connectionMade(self):
+        xmlstream.XmlStream.connectionMade(self)
+        self.transport.setTcpNoDelay(True)
+
     def _cb_priv_list(self, iq):
         send_error_reply(self, iq)
 



More information about the telepathy-commits mailing list