Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1955)

Unified Diff: net/quic/quic_session.cc

Issue 243533003: Sent QUIC "PING" frames when a stream is open and the connection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index da1c863fcc64ae46be0806eade8c8046efd5f043..01a47cd6ab96121b8ab15b60ffd211a879263a97 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -86,6 +86,10 @@ class VisitorShim : public QuicConnectionVisitorInterface {
return session_->HasPendingHandshake();
}
+ virtual bool HasOpenStreams() const OVERRIDE {
+ return session_->HasOpenStreams();
+ }
+
private:
QuicSession* session_;
};
@@ -301,6 +305,10 @@ bool QuicSession::HasPendingHandshake() const {
return has_pending_handshake_;
}
+bool QuicSession::HasOpenStreams() const {
+ return GetNumOpenStreams() > 0;
jar (doing other things) 2014/04/19 16:35:43 How does the crypto stream fit into the mix? It i
Ryan Hamilton 2014/04/19 19:18:48 Both the crypto and headers streams are not consid
+}
+
QuicConsumedData QuicSession::WritevData(
QuicStreamId id,
const IOVector& data,

Powered by Google App Engine
This is Rietveld 408576698