Safer timeout handling and test case
commitdf76b78d359f34a73ce407f40f594577e04b014b
authorEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 23:16:48 +0000 (3 16:16 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 23:29:03 +0000 (3 23:29 +0000)
treed7d75b2c850760b07b0e65aa0008b781133732f0
parent895ae151c8703ebcd52becf5f2ca297d21274ef6
Safer timeout handling and test case

Timeouts of less than 2 seconds are unsafe due to the lack of
subsecond resolution in most POSIX filesystems.  This is the
trade-off for using a low-complexity solution for timeouts.
Since this type of timeout is a last resort; 2 seconds is not
entirely unreasonable IMNSHO.  Additionally, timing out too
aggressively can put us in a fork loop and slow down the system.

Of course, the default is 60 seconds and most people do not
bother to change it.
TODO
lib/unicorn.rb
lib/unicorn/configurator.rb
test/unit/test_signals.rb