OLD | NEW |
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_session.h" | 5 #include "net/quic/quic_session.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "net/quic/crypto/proof_verifier.h" | 8 #include "net/quic/crypto/proof_verifier.h" |
9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
10 #include "net/quic/quic_flags.h" | 10 #include "net/quic/quic_flags.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // Retransmit originally packets that were sent, since they can't be | 415 // Retransmit originally packets that were sent, since they can't be |
416 // decrypted by the peer. | 416 // decrypted by the peer. |
417 connection_->RetransmitUnackedPackets(INITIAL_ENCRYPTION_ONLY); | 417 connection_->RetransmitUnackedPackets(INITIAL_ENCRYPTION_ONLY); |
418 break; | 418 break; |
419 | 419 |
420 case HANDSHAKE_CONFIRMED: | 420 case HANDSHAKE_CONFIRMED: |
421 LOG_IF(DFATAL, !config_.negotiated()) << ENDPOINT | 421 LOG_IF(DFATAL, !config_.negotiated()) << ENDPOINT |
422 << "Handshake confirmed without parameter negotiation."; | 422 << "Handshake confirmed without parameter negotiation."; |
423 // Discard originally encrypted packets, since they can't be decrypted by | 423 // Discard originally encrypted packets, since they can't be decrypted by |
424 // the peer. | 424 // the peer. |
425 connection_->DiscardUnencryptedPackets(); | 425 connection_->NeuterUnencryptedPackets(); |
426 connection_->SetOverallConnectionTimeout(QuicTime::Delta::Infinite()); | 426 connection_->SetOverallConnectionTimeout(QuicTime::Delta::Infinite()); |
427 max_open_streams_ = config_.max_streams_per_connection(); | 427 max_open_streams_ = config_.max_streams_per_connection(); |
428 break; | 428 break; |
429 | 429 |
430 default: | 430 default: |
431 LOG(ERROR) << ENDPOINT << "Got unknown handshake event: " << event; | 431 LOG(ERROR) << ENDPOINT << "Got unknown handshake event: " << event; |
432 } | 432 } |
433 } | 433 } |
434 | 434 |
435 void QuicSession::OnCryptoHandshakeMessageSent( | 435 void QuicSession::OnCryptoHandshakeMessageSent( |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 NOTIMPLEMENTED(); | 599 NOTIMPLEMENTED(); |
600 return false; | 600 return false; |
601 } | 601 } |
602 | 602 |
603 void QuicSession::PostProcessAfterData() { | 603 void QuicSession::PostProcessAfterData() { |
604 STLDeleteElements(&closed_streams_); | 604 STLDeleteElements(&closed_streams_); |
605 closed_streams_.clear(); | 605 closed_streams_.clear(); |
606 } | 606 } |
607 | 607 |
608 } // namespace net | 608 } // namespace net |
OLD | NEW |