[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - server.py:1.8.20.2 client.py:1.25.16.4

Jeremy Hylton jeremy at zope.com
Tue Oct 7 11:24:56 EDT 2003


Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv31430

Modified Files:
      Tag: Zope-2_7-branch
	server.py client.py 
Log Message:
Disable TCP_NODELAY.

Disable TCP mechanism that attempts to reduce the number of small
packets, by delaying small packets in hopes of accumulating more data
into a single larger packet.  This feature interacts poorly with an
RPC protocol like zrpc, because it sends a small packet and then waits
for a response.  zrpc will not accumulate any more data, because it is
waiting for a response.


=== ZODB3/ZEO/zrpc/server.py 1.8.20.1 => 1.8.20.2 ===
--- ZODB3/ZEO/zrpc/server.py:1.8.20.1	Wed Oct  1 13:45:59 2003
+++ ZODB3/ZEO/zrpc/server.py	Tue Oct  7 11:24:55 2003
@@ -55,5 +55,6 @@
         except socket.error, msg:
             log("accepted failed: %s" % msg)
             return
+        sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
         c = self.factory(sock, addr)
         log("connect from %s: %s" % (repr(addr), c))


=== ZODB3/ZEO/zrpc/client.py 1.25.16.3 => 1.25.16.4 ===
--- ZODB3/ZEO/zrpc/client.py:1.25.16.3	Tue Sep 30 15:24:05 2003
+++ ZODB3/ZEO/zrpc/client.py	Tue Oct  7 11:24:55 2003
@@ -441,6 +441,7 @@
             self.close()
             return
         self.sock.setblocking(0)
+        self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
         self.state = "opened"
 
     def connect_procedure(self):




More information about the Zodb-checkins mailing list