Session.http() returns lastResponse when connection times out. #9

Open
lnreeder opened this Issue Nov 8, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@lnreeder

lnreeder commented Nov 8, 2012

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.

Regards............ Larry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment