cleanup and refactor error handling
commit5868eeecb2fbc85f3e4fabf3d16f27d259491c0d
authorEric Wong <normalperson@yhbt.net>
Thu, 26 Nov 2009 22:09:45 +0000 (26 14:09 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 26 Nov 2009 22:19:04 +0000 (26 14:19 -0800)
tree21746be61158f9c177bc8e2600d7922cdedc7ce1
parent278d9d5a7f3d2dc3c6563af1584b5e773e08073d
cleanup and refactor error handling

Make sure app errors get logged correctly, and we no longer
return a 500 response when a client EOFs the write end (but not
the read end) of a connection.
14 files changed:
lib/rainbows.rb
lib/rainbows/base.rb
lib/rainbows/error.rb [new file with mode: 0644]
lib/rainbows/ev_core.rb
lib/rainbows/fiber_pool.rb
lib/rainbows/fiber_spawn.rb
lib/rainbows/rev_thread_spawn.rb
lib/rainbows/revactor.rb
lib/rainbows/thread_pool.rb
lib/rainbows/thread_spawn.rb
t/t0000-simple-http.sh
t/t0001-unix-http.sh
t/t0009-broken-app.sh [new file with mode: 0644]
t/t0009.ru [new file with mode: 0644]