You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dbfdde9
Browse filesBrowse the repository at this point in the historyBrowse files
[BUG] Retire a refused export before describing the refusal
The export is registered before the shutdown check, and the guard that
retires it could only run after the refusal had already been described. The
log handler is replaceable, so a handler that calls ForceFlush() from that
error waited for the Export() that was calling it. The same path also
described one refusal twice, once itself and once through the guard.
Retiring is now separate from reporting. The refusal retires, disarms the
guard, and says so once. The completion still answers true, because changing
what it answers would change what the response handler reads.
Measured with a handler that calls ForceFlush(20ms) from the shutdown error.
Before: the flush returns false after waiting out its full 20 ms, 3 of 3.
After: it returns true in 0 ms, 3 of 3, and one refusal reads as one line.
The file holds at 25 passing, 3 of 3.
Three statements alongside it claimed more than they hold. An array cannot
notice that an enum grew, so the comment now names the switch without a
default under -Wswitch as what catches a new state. The curl completion
lambda tests the response first and the abort in an else, so the comment
that called it two independent ifs is out of date. And the fixture put a
fresh default log handler back rather than the one it found.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
0 commit comments