Method: TCPSocket#no_delay

Defined in:
lib/polyphony/extensions/socket.rb

#no_delay::Socket

Sets the NODELAY option.

Returns:

  • self



297
298
299
300
# File 'lib/polyphony/extensions/socket.rb', line 297

def no_delay
  setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
  self
end