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

Side by Side Diff: net/quic/core/quic_session.cc

Issue 2487973003: GOAWAY open QUIC sessions if clock skew is detected (Closed)
Patch Set: format Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_session.h" 5 #include "net/quic/core/quic_session.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "net/quic/core/crypto/proof_verifier.h" 11 #include "net/quic/core/crypto/proof_verifier.h"
12 #include "net/quic/core/quic_bug_tracker.h" 12 #include "net/quic/core/quic_bug_tracker.h"
13 #include "net/quic/core/quic_connection.h" 13 #include "net/quic/core/quic_connection.h"
14 #include "net/quic/core/quic_flags.h" 14 #include "net/quic/core/quic_flags.h"
15 #include "net/quic/core/quic_flow_controller.h" 15 #include "net/quic/core/quic_flow_controller.h"
16 #include "net/ssl/ssl_info.h"
Buck 2016/11/14 23:49:46 No harm in removing dead code, but this is unrelat
Ryan Hamilton 2016/11/14 23:50:33 Yeah, unrelated.
17 16
18 using base::IntToString; 17 using base::IntToString;
19 using base::StringPiece; 18 using base::StringPiece;
20 using std::make_pair; 19 using std::make_pair;
21 using std::max; 20 using std::max;
22 using std::string; 21 using std::string;
23 using net::SpdyPriority; 22 using net::SpdyPriority;
24 23
25 namespace net { 24 namespace net {
26 25
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 817
819 size_t QuicSession::MaxAvailableStreams() const { 818 size_t QuicSession::MaxAvailableStreams() const {
820 return max_open_incoming_streams_ * kMaxAvailableStreamsMultiplier; 819 return max_open_incoming_streams_ * kMaxAvailableStreamsMultiplier;
821 } 820 }
822 821
823 bool QuicSession::IsIncomingStream(QuicStreamId id) const { 822 bool QuicSession::IsIncomingStream(QuicStreamId id) const {
824 return id % 2 != next_outgoing_stream_id_ % 2; 823 return id % 2 != next_outgoing_stream_id_ % 2;
825 } 824 }
826 825
827 } // namespace net 826 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698