Commit 9f14d81c authored by Zhongyi Shi's avatar Zhongyi Shi Committed by Commit Bot

relnote: Add a method in QuicSession to expose the number of draining streams.

Manual merge internal change: 197808559

Change-Id: I89c702716274264e629708324bca6cce89a95abd
Reviewed-on: https://chromium-review.googlesource.com/1073924Reviewed-by: default avatarRyan Hamilton <rch@chromium.org>
Commit-Queue: Zhongyi Shi <zhongyi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562513}
parent dfaf8533
......@@ -944,6 +944,10 @@ size_t QuicSession::GetNumActiveStreams() const {
return dynamic_stream_map_.size() - draining_streams_.size();
}
size_t QuicSession::GetNumDrainingStreams() const {
return draining_streams_.size();
}
size_t QuicSession::GetNumAvailableStreams() const {
return available_streams_.size();
}
......
......@@ -238,6 +238,9 @@ class QUIC_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface,
// headers and crypto streams, and never counting unfinished streams.
size_t GetNumActiveStreams() const;
// Returns the number of currently draining streams.
size_t GetNumDrainingStreams() const;
// Returns the number of currently open peer initiated streams, excluding the
// reserved headers and crypto streams.
size_t GetNumOpenIncomingStreams() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment