3 ms·
The other answer is correct I believe, but I think the most common recommendation I've seen for rails boils down to "Use Timeout, and then kill and restart the
by mijoharas 2y ago
The other answer is correct I believe, but I think the most common recommendation I've seen for rails boils down to "Use Timeout, and then kill and restart the process" (ref: [0], [1]), which obviously doesn't feel great for performance when a timeout in one thread can cause all other threads to need to be killed.
[0] https://www.schneems.com/2017/02/21/the-oldest-bug-in-ruby-why-racktimeout-might-hose-your-server/ https://www.schneems.com/2017/02/21/the-oldest-bug-in-ruby-w...
[1] https://github.com/zombocom/rack-timeout https://github.com/zombocom/rack-timeout (c.f. term_on_timeout)