add Rainbows::ThreadTimeout middleware
commitbd3ed0b04f826b20cce83f9b77fc13c0eefd3902
authorEric Wong <normalperson@yhbt.net>
Thu, 19 Aug 2010 06:59:21 +0000 (18 23:59 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 19 Aug 2010 07:27:15 +0000 (19 00:27 -0700)
tree8b1065a10ae2e3e44bfe04edc868946e603adfc7
parentac05e7035e1946b78ce4679548db7680aa01734c
add Rainbows::ThreadTimeout middleware

This allows for per-dispatch timeouts similar to (but not exactly)
the way Mongrel (1.1.x) implemented them with threads.
lib/rainbows.rb
lib/rainbows/thread_timeout.rb [new file with mode: 0644]
t/t9100-thread-timeout.sh [new file with mode: 0755]
t/t9100.ru [new file with mode: 0644]
t/t9101-thread-timeout-threshold.sh [new file with mode: 0755]
t/t9101.ru [new file with mode: 0644]