karmi/tire — Issue #170: RequestTimeout and ServerBrokeConnection are caught
Author: dylanahsmith
Created: 2011-12-13 15:32:53+00:00
State: open

Tire is catching these exceptions in its http client, and returning a response with an error code of 0 and http body of nil. However, these are indicators of a connection errors.

To reproduce these exceptions, start out by running `nc -l 9200` in one terminal, then use Tire.configuration.client to make a request in another terminal, then

1. for RestClient::RequestTimeout just wait for the request to timeout.
2. for RestClient::ServerBrokeConnection just kill nc (Ctrl-C, Ctrl-D or Ctrl-\).

The expected result is that the exception is raised, so that it can be handled along with other connection errors for failover, as discussed in issue #162.