Chromium Code Reviews| 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_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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |