diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-30 08:32:21 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-04 16:21:17 -0800 |
commit | dc77752eb7bfe528c60dc0ac028717877342e22a (patch) | |
tree | 32987105ac9d56b53ea18966d5e56ec1dbf6b9b4 /lib/rainbows/coolio/thread_client.rb | |
parent | 5c5aea99a57d07c1d0e0ea471b62acf2852526c7 (diff) | |
download | rainbows-dc77752eb7bfe528c60dc0ac028717877342e22a.tar.gz |
After beefing up and enabling byte range tests for "sendfile" (and no just IO.copy_stream), we noticed threaded-Coolio variants did not handle invalid byte ranges correctly.
Diffstat (limited to 'lib/rainbows/coolio/thread_client.rb')
-rw-r--r-- | lib/rainbows/coolio/thread_client.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/coolio/thread_client.rb b/lib/rainbows/coolio/thread_client.rb index cc284bd..3ada7bf 100644 --- a/lib/rainbows/coolio/thread_client.rb +++ b/lib/rainbows/coolio/thread_client.rb @@ -19,6 +19,8 @@ class Rainbows::Coolio::ThreadClient < Rainbows::Coolio::Client return quit unless alive && :close != @state @state = :headers + rescue => e + handle_error(e) end # fails-safe application dispatch, we absolutely cannot |