[FIXED] Incomplete route pool on premature pong#7971
Conversation
|
Claude finished @MauriceVanVeen's task in 1m 50s —— View job PR Review: [FIXED] Incomplete route pool on premature pong
ReviewCorrectness: The fix is correct and well-targeted. The bug is clear: The fix — replacing the flag check with a simple nil-guard on
...there's no risk of double-triggering, and the fix correctly handles the race. Minor issues:
Overall: The fix is sound. The test does exercise the race condition correctly. The stale comments in |
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
1aa2184 to
e5678cb
Compare
|
@claude, brief re-review please. |
|
Claude finished @MauriceVanVeen's task in 53s —— View job Re-review
Overall: LGTM. The fix is correct and the previous stale-comment concern in The one remaining stale comment is at // In pool mode, if we did not yet reach the cap, try to connect a new connection,
// but do so only after receiving the first PONG to our PING, which will ensure
// that we have proper authentication.This still says "first PONG to our PING" — now that the mechanism is a nil-guard on Test ( Two small nits from the previous review remain open (not blocking):
Neither of these are blockers. The fix itself is minimal, correct, and well-tested. |
If the first PONG was received before
c.route.startNewRoutewas initialized it would result in the route pool not being fully populated. Instead of relying on the very first pong, we can just rely on the first pong after initializing the field.Signed-off-by: Maurice van Veen github@mauricevanveen.com