Created
June 8, 2017 22:20
-
-
Save zanker/d753c058f0bcb9ebb627ea5e4204be16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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