From dc77752eb7bfe528c60dc0ac028717877342e22a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Dec 2010 08:32:21 +0000 Subject: coolio_thread_*: fix 416 response handling 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. --- lib/rainbows/coolio/thread_client.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7