set TCP_NODELAY for db sockets.

This commit is contained in:
Jim Menard 2009-02-10 13:32:40 -05:00
parent 05aafc0de4
commit 4302de0227
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ module XGen
@host, @port = *hp @host, @port = *hp
begin begin
@socket = TCPSocket.new(@host, @port) @socket = TCPSocket.new(@host, @port)
@socket.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
# Check for master. Can't call master? because it uses mutex, # Check for master. Can't call master? because it uses mutex,
# which may already be in use during this call. # which may already be in use during this call.