This is an automated email from the ASF dual-hosted git repository.
scw00 pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new b8cae7d QUIC: Set packet_info's bytes to zero if it is the ack-only
packet
b8cae7d is described below
commit b8cae7d470eb5cc0fc23017ed73f34112021cc4a
Author: scw00 <[email protected]>
AuthorDate: Sun Mar 25 18:03:04 2018 +0800
QUIC: Set packet_info's bytes to zero if it is the ack-only packet
---
iocore/net/quic/QUICLossDetector.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/net/quic/QUICLossDetector.cc
b/iocore/net/quic/QUICLossDetector.cc
index e9bbd3d..33d1097 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -135,7 +135,7 @@ QUICLossDetector::on_packet_sent(QUICPacketUPtr packet)
QUICPacketNumber packet_number = packet->packet_number();
bool is_ack_only = !packet->is_retransmittable();
- size_t sent_bytes = packet->size();
+ size_t sent_bytes = is_ack_only ? 0 : packet->size();
this->_on_packet_sent(packet_number, is_ack_only, is_handshake, sent_bytes,
std::move(packet));
}
--
To stop receiving notification emails like this one, please contact
[email protected].