Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Session.http() returns lastResponse when connection times out. #9
Not sure if this is by design, but Session.http() is returning the lastResponse when it times out (IOException) on a equest to the couch server. This results in the failed Database.view() call quietly returning the results of the last view, and we return invalid data to our users.
The time out is logged, but we would prefer a noisy failure (maybe even a checked exception!) so we can take steps to handle it.