Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ public void close() {
super.close();
meter.recordCount(RPCMetric.ReqPipelineCompleteCount);
cancelPreflightTasks(new RequestAbortException("Pipeline has closed"));
// Also abort in-flight requests: super.close() disposes the stream, so their responses
// can never arrive and onStreamError() will not fire afterwards - leaving the futures pending
// hangs direct (non-batched) callers forever and leaks the inflight tasks.
cancelInflightTasks(new RequestAbortException("Pipeline has closed"));
}
}

Expand Down