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

Side by Side Diff: net/quic/quic_client_session.cc

Issue 343783003: Disable the QUIC handshake timeout until we cut Beta. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/quic_network_transaction_unittest.cc » ('j') | 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/quic_client_session.h" 5 #include "net/quic/quic_client_session.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 stream_factory_->OnSessionClosed(this); 833 stream_factory_->OnSessionClosed(this);
834 } 834 }
835 835
836 void QuicClientSession::OnConnectTimeout() { 836 void QuicClientSession::OnConnectTimeout() {
837 DCHECK(callback_.is_null()); 837 DCHECK(callback_.is_null());
838 DCHECK(IsEncryptionEstablished()); 838 DCHECK(IsEncryptionEstablished());
839 839
840 if (IsCryptoHandshakeConfirmed()) 840 if (IsCryptoHandshakeConfirmed())
841 return; 841 return;
842 842
843 if (stream_factory_) 843 // TODO(rch): re-enable this code once beta is cut.
844 stream_factory_->OnSessionConnectTimeout(this); 844 // if (stream_factory_)
845 CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); 845 // stream_factory_->OnSessionConnectTimeout(this);
846 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED);
847 // DCHECK_EQ(0u, GetNumOpenStreams());
846 } 848 }
847 849
848 } // namespace net 850 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698