lib/puma/server.rb
def add_tcp_listener(host, port, optimize_for_latency=true, backlog=1024)
      s = TCPServer.new(host, port)
      if optimize_for_latency
        s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
      end
      s.listen backlog
      @ios << s
    end
# Tell the server to listen on host +host+, port +port+.
# If +optimize_for_latency+ is true (the default) then clients connecting
# will be optimized for latency over throughput.
#
# +backlog+ indicates how many unaccepted connections the kernel should
# allow to accumulate before returning connection refused.
#
Tell the server to listen on host +host+, port +port+.
If +optimize_for_latency+ is true (the default) then clients connecting
will be optimized for latency over throughput.

+backlog+ indicates how many unaccepted connections the kernel should
allow to accumulate before returning connection refused.
Tell the server to listen on host + host + port + port + . If + optimize_for_latency + is true ( the default ) then clients connecting will be optimized for latency over throughput . + backlog + indicates how many unaccepted connections the kernel should allow to accumulate before returning connection refused .
def add_tcp_listener(host, port, optimize_for_latency=true, backlog=1024)
      s = TCPServer.new(host, port)
      if optimize_for_latency
        s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
      end
      s.listen backlog
      @ios << s
    end
def add_tcp_listener ( host , port , optimize_for_latency = true , backlog = 1024 ) s = TCPServer . new ( host , port ) if optimize_for_latency s . setsockopt ( Socket :: IPPROTO_TCP , Socket :: TCP_NODELAY , 1 ) end s . listen backlog @ios << s end
Tell the server to listen on host +host+, port +port+.
Tell the server to listen on host + host + port + port + .
host
port
optimize_for_latency
backlog