Skip to content

Commit

Permalink
Bug fix: Fixed propagation of runtime exceptions thrown during connec…
Browse files Browse the repository at this point in the history
…tion route setup
  • Loading branch information
ok2c committed Oct 17, 2024
1 parent 876d0f0 commit ca5e14e
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@ private void proceedToNextHop(
final AsyncExecChain.Scope scope,
final AsyncExecChain chain,
final AsyncExecCallback asyncExecCallback) {
try {
doProceedToNextHop(state, request, entityProducer, scope, chain, asyncExecCallback);
} catch (final RuntimeException ex) {
asyncExecCallback.failed(ex);
}
}

private void doProceedToNextHop(
final State state,
final HttpRequest request,
final AsyncEntityProducer entityProducer,
final AsyncExecChain.Scope scope,
final AsyncExecChain chain,
final AsyncExecCallback asyncExecCallback) {
final RouteTracker tracker = state.tracker;
final String exchangeId = scope.exchangeId;
final HttpRoute route = scope.route;
Expand Down

0 comments on commit ca5e14e

Please sign in to comment.