Merge pull request #2249 from TuxInvader/duration-close-race

fix race condition on h1 connection close
This commit is contained in:
Tatsuhiro Tsujikawa
2024-10-08 20:22:46 +09:00
committed by GitHub

View File

@@ -697,6 +697,10 @@ int Client::try_again_or_fail() {
worker->stats.req_error += req_inflight;
req_inflight = 0;
} else if (worker->current_phase == Phase::DURATION_OVER) {
// fix a race condition when h2load is sending connection: close over h1
// prevents new clients from spawning after the test should have ended.
return -1;
}
// Keep using current address