Skip to content

Instantly share code, notes, and snippets.

@zanker
Created June 8, 2017 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zanker/d753c058f0bcb9ebb627ea5e4204be16 to your computer and use it in GitHub Desktop.
Save zanker/d753c058f0bcb9ebb627ea5e4204be16 to your computer and use it in GitHub Desktop.
if io = sock.accept_nonblock
client = Client.new io, @binder.env(sock)
if remote_addr_value
client.peerip = remote_addr_value
elsif remote_addr_header
client.remote_addr_header = remote_addr_header
end
pool << client
pool.wait_until_not_full unless queue_requests
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment