HTTPCLIENT-2231: a race condition in the main async exec when the request execution on an I/O thread is faster then execution pipeline management on the client thread

This commit is contained in:
Oleg Kalnichevski 2022-08-17 18:39:05 +02:00
parent 18fa09f6a2
commit 3fe6a8bcdf
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ class HttpAsyncMainClientExec implements AsyncExecChainHandler {
@Override
public void cancel() {
failed(new InterruptedIOException());
if (messageCountDown.get() > 0) {
failed(new InterruptedIOException());
}
}
@Override