summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/port_publisher.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/port_publisher.py b/examples/port_publisher.py
index fb6f028..23839dc 100644
--- a/examples/port_publisher.py
+++ b/examples/port_publisher.py
@@ -256,6 +256,7 @@ class Forwarder(ZeroconfService):
if self.socket is None:
self.socket = connection
self.socket.setblocking(0)
+ self.socket.setsockopt( socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
if not options.quiet:
print '%s: Connected by %s:%s' % (self.device, addr[0], addr[1])
self.rfc2217 = serial.rfc2217.PortManager(self.serial, self, debug_output=False)