queue_requestsbeing 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_requeststo false fixes this.
queue_requestsis true? It seems like this is a bad default in this situation.
set_remote_address header: "X-Forwarded-For”
Rails::Serveris only defined when that command is run. However we use the
pumabinary in production,
Rails::Serveris not defined and
Puma::Serveris always defined. Is there a way I can detect that I am running inside a puma server?