Safer timeout handling and test case
commitcfe5234e975b914e831907db77fee8f154950fc1
authorEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 23:16:48 +0000 (3 16:16 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 22 May 2009 08:54:20 +0000 (22 01:54 -0700)
tree543288827920242efecb58f1e7ae3aa16696b1de
parent476751e32b8ae454829491ede68f4a062d4cec9f
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