Method: TCPSocket#reuse_port

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

#reuse_port::Socket

Sets the REUSEPORT option.

Returns:



313
314
315
316
# File 'lib/polyphony/extensions/socket.rb', line 313

def reuse_port
  setsockopt(::Socket::SOL_SOCKET, ::Socket::SO_REUSEPORT, 1)
  self
end