Review report

bitcoin/bitcoin: PR #36737

1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · Readiness progress probe ignores events reported only by WaitMany()

In the readiness test, an optional SendEvent reported only by the aggregate WaitMany() can escape the send-progress check for a full, non-reset socket.

Location: src/test/sock_tests.cpp:581 (head).

Details and suggested fix

For full, non-reset sockets, Expect() permits SendEvent because the OS may have made room, provided the next send makes progress. However, only individual Wait() results update occurred_any; the aggregate WaitMany() results only reach Check(), which accepts that optional bit. A false SendEvent confined to the multi-socket call could therefore pass without a send probe if neither individual wait reported it. Although Wait() delegates to WaitMany(), it supplies only one socket, and wait_many_attribution never fills send buffers. Make the aggregate-results loop non-const and add s.occurred_any |= occurred; after Check(), updating the field comment to cover both APIs. This preserves the platform-dependent allowance and checks its justification using the same once-after-all-waits probe already used for individual results.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.