Skip to content

Commit

Permalink
Ensure streams are cleaned up on authentication failure to support re…
Browse files Browse the repository at this point in the history
…connect attempts (#1191)
  • Loading branch information
jfallows authored Aug 13, 2024
1 parent c36b448 commit 11d82e0
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ private void cleanupStreams(
streamsByInitialId.remove(s);
});
streams.clear();
signalerCorrelations.clear();
}

private void onConnectionSignal(
Expand Down Expand Up @@ -1808,11 +1809,7 @@ private void cleanupConnection(
doConnectionAbort(traceId);
doConnectionReset(traceId);

streams.clear();
requests.clear();
responses.clear();
responseAcks.clear();
signalerCorrelations.clear();
cleanupStreams(traceId);
}

private void cleanupBudgetCreditorIfNecessary()
Expand Down

0 comments on commit 11d82e0

Please sign in to comment.