diff options
Diffstat (limited to 'lib/yahns/http_client.rb')
-rw-r--r-- | lib/yahns/http_client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb index 5f137fd..34e99b4 100644 --- a/lib/yahns/http_client.rb +++ b/lib/yahns/http_client.rb @@ -269,7 +269,8 @@ class Yahns::HttpClient < Kgio::Socket # :nodoc: # nil to ensure the socket is closed at the end of this function def handle_error(e) code = case e - when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::ENOTCONN + when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::ENOTCONN, + Errno::ETIMEDOUT return # don't send response, drop the connection when Yahns::ClientTimeout 408 |