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:
parent
18fa09f6a2
commit
3fe6a8bcdf
|
@ -133,7 +133,9 @@ class HttpAsyncMainClientExec implements AsyncExecChainHandler {
|
|||
|
||||
@Override
|
||||
public void cancel() {
|
||||
failed(new InterruptedIOException());
|
||||
if (messageCountDown.get() > 0) {
|
||||
failed(new InterruptedIOException());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue