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,8 +133,10 @@ class HttpAsyncMainClientExec implements AsyncExecChainHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cancel() {
|
public void cancel() {
|
||||||
|
if (messageCountDown.get() > 0) {
|
||||||
failed(new InterruptedIOException());
|
failed(new InterruptedIOException());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void produceRequest(
|
public void produceRequest(
|
||||||
|
|
Loading…
Reference in New Issue