Commit fd0dbff7 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove use of TCP_NODELAY.

I was always uncomfortable with this, but its portability is a simple
justification for removing it.
parent 1a96592b
...@@ -41,7 +41,6 @@ class Dispatcher(asyncore.dispatcher): ...@@ -41,7 +41,6 @@ class Dispatcher(asyncore.dispatcher):
self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
else: else:
self.create_socket(socket.AF_UNIX, socket.SOCK_STREAM) self.create_socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.setsockopt(socket.IPPROTO_TCP, 1, 1) # TCP_NODELAY
self.set_reuse_addr() self.set_reuse_addr()
log("listening on %s" % str(self.addr)) log("listening on %s" % str(self.addr))
self.bind(self.addr) self.bind(self.addr)
......
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