Net::HTTP's default read and open timeouts are 60 seconds. That's completely inappropriate for use during a web request. Pretty much everyone should be decreasing both of these to ~5 seconds. Better to return quickly to the user than wait another 55 seconds.

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Gustavo Garcia

@nateberkopec hey! Great tip :)
Is there a smart way to do it globally on a Rails project?

1
1y
Replies