When I upload a big file to rails server, I always get a request timeout error. I don't know where to change the request timeout value.
For webrick there is a file called /usr/lib/ruby/1.9.1/webrick/config.rb
.
Location may differ based on your version and install method. In that file there is a line:
:RequestTimeout => 30
that can be modified.
And in thin, thin -t 60
makes the timeout 60 seconds, the default is 30
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With