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

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

Issue 1395423009: relnote: add test cases to catch failure on uninitialized self_address_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_comment_104108540
Patch Set: Minor cleanup Created 5 years, 2 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
« no previous file with comments | « no previous file | net/quic/quic_connection_test.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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 ++stats_.packets_sent; 1616 ++stats_.packets_sent;
1617 if (packet->transmission_type != NOT_RETRANSMISSION) { 1617 if (packet->transmission_type != NOT_RETRANSMISSION) {
1618 stats_.bytes_retransmitted += result.bytes_written; 1618 stats_.bytes_retransmitted += result.bytes_written;
1619 ++stats_.packets_retransmitted; 1619 ++stats_.packets_retransmitted;
1620 } 1620 }
1621 1621
1622 if (result.status == WRITE_STATUS_ERROR) { 1622 if (result.status == WRITE_STATUS_ERROR) {
1623 OnWriteError(result.error_code); 1623 OnWriteError(result.error_code);
1624 DLOG(ERROR) << ENDPOINT << "failed writing " << encrypted->length() 1624 DLOG(ERROR) << ENDPOINT << "failed writing " << encrypted->length()
1625 << " bytes " 1625 << " bytes "
1626 << " from host " << self_address().ToStringWithoutPort() 1626 << " from host " << (self_address().address().empty()
ramant (doing other things) 2015/10/15 00:47:55 Hi Ryan, The new test crashes on chromium becaus
1627 ? " empty address "
1628 : self_address().ToStringWithoutPort())
1627 << " to address " << peer_address().ToString(); 1629 << " to address " << peer_address().ToString();
1628 return false; 1630 return false;
1629 } 1631 }
1630 1632
1631 return true; 1633 return true;
1632 } 1634 }
1633 1635
1634 bool QuicConnection::ShouldDiscardPacket(const QueuedPacket& packet) { 1636 bool QuicConnection::ShouldDiscardPacket(const QueuedPacket& packet) {
1635 if (!connected_) { 1637 if (!connected_) {
1636 DVLOG(1) << ENDPOINT 1638 DVLOG(1) << ENDPOINT
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; 2325 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1;
2324 ++mtu_probe_count_; 2326 ++mtu_probe_count_;
2325 2327
2326 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; 2328 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_;
2327 SendMtuDiscoveryPacket(mtu_discovery_target_); 2329 SendMtuDiscoveryPacket(mtu_discovery_target_);
2328 2330
2329 DCHECK(!mtu_discovery_alarm_->IsSet()); 2331 DCHECK(!mtu_discovery_alarm_->IsSet());
2330 } 2332 }
2331 2333
2332 } // namespace net 2334 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698