queue_requests
being true, combined with only one thread per worker. As I understand, a worker in any state would be selected to handle the request. When there are multiple threads, this issue does not arise. Setting queue_requests
to false fixes this.
queue_requests
is true? It seems like this is a bad default in this situation.
set_remote_address header: "X-Forwarded-For”
rails server
as Rails::Server
is only defined when that command is run. However we use the puma
binary in production, Rails::Server
is not defined and Puma::Server
is always defined. Is there a way I can detect that I am running inside a puma server?