Commit face448b authored by Grégory Wisniewski's avatar Grégory Wisniewski

Set TCP_NODELAY on socket connections.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1529 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1b831534
......@@ -57,6 +57,8 @@ class SocketConnector:
self.socket = s
# always use non-blocking sockets
self.socket.setblocking(0)
# disable Nagle algorithm to reduce latency
self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
def makeClientConnection(self, addr):
self.is_closed = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment