Fix potential problem with asynchronously closed input stream of HttpMessage
@@ -364,6 +364,7 @@ public abstract class AbstractHttpConnection {
process.getProcessCompletion()
.whenComplete(($, e) -> {
+ if (isClosed()) return;
if (e == null) {
flags |= BODY_RECEIVED;
onBodyReceived();
