set TCP_NODELAY for db sockets.
This commit is contained in:
parent
05aafc0de4
commit
4302de0227
|
@ -133,6 +133,7 @@ module XGen
|
|||
@host, @port = *hp
|
||||
begin
|
||||
@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,
|
||||
# which may already be in use during this call.
|
||||
|
|
Loading…
Reference in New Issue