FooBarWidget/passenger — pull request #34 by pkmiec (2011-11-30 19:52:59+00:00)
Title: exposing read_timeout parameters in nginx config

Passenger currently responds with 504 when the server takes longer than 10 minutes (read_timeout). Although this is an option internally, it is not exposed to be configured via nginx config.

I'm re-using passenger for long running tasks and in certain rare cases it is needed for this timeout to be longer. It seems other may run into this limitation from time to time as well (http://groups.google.com/group/phusion-passenger/browse_thread/thread/2ce11bef1fa7032d).

This is a simple change that exposes the read_timeout to the nginx config. Included is the change with a test to ensure the parameter works. I did not change the documentation for nginx, however, as in general 10 min timeout is appropriate.

I tested an hour timeout with nginx 1.0.10 and it worked fine.