Commit c7348640 authored by 's avatar

Added sockopt setting to avoid buffering in the loopback select trigger.

parent ae16bd0b
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING = "$Id: select_trigger.py,v 1.5 1999/07/20 16:53:50 amos Exp $"
VERSION_STRING = "$Id: select_trigger.py,v 1.6 1999/08/17 20:29:20 brian Exp $"
import asyncore
import asynchat
......@@ -99,6 +99,9 @@ else:
a = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
w = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
# set TCP_NODELAY to true to avoid buffering
w.setsockopt(socket.IPPROTO_TCP, 1, 1)
# tricky: get a pair of connected sockets
a.bind (self.address)
a.listen (1)
......
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING = "$Id: select_trigger.py,v 1.5 1999/07/20 16:53:50 amos Exp $"
VERSION_STRING = "$Id: select_trigger.py,v 1.6 1999/08/17 20:29:20 brian Exp $"
import asyncore
import asynchat
......@@ -99,6 +99,9 @@ else:
a = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
w = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
# set TCP_NODELAY to true to avoid buffering
w.setsockopt(socket.IPPROTO_TCP, 1, 1)
# tricky: get a pair of connected sockets
a.bind (self.address)
a.listen (1)
......
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