Skip to content

Commit

Permalink
leave connection gracefully finishes on http 40x, 50x, 301/302
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Maldini committed Oct 11, 2017
1 parent a3708c0 commit 9eb3a10
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ final boolean checkResponseCode(HttpResponse response) {
}
Exception ex = new HttpClientException(uri(), response);
parentContext().fireContextError(ex);
onHandlerTerminate();
receive().subscribe();
return false;
}
return true;
Expand All @@ -623,7 +623,7 @@ final boolean checkResponseCode(HttpResponse response) {
}
Exception ex = new HttpClientException(uri(), response);
parentContext().fireContextError(ex);
onHandlerTerminate();
receive().subscribe();
return false;
}
return true;
Expand All @@ -638,7 +638,7 @@ final boolean checkResponseCode(HttpResponse response) {
}
Exception ex = new RedirectClientException(uri(), response);
parentContext().fireContextError(ex);
onHandlerTerminate();
receive().subscribe();
return false;
}
return true;
Expand Down

0 comments on commit 9eb3a10

Please sign in to comment.