You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2022/07/07 02:27:50 UTC
[trafficserver] 02/12: Fix a bug in sent bytes count
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quiche
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 1539891c9f2bd001974c12180072553068324788
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Jun 10 11:20:37 2022 +0900
Fix a bug in sent bytes count
---
iocore/net/quic/QUICStreamVCAdapter.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/net/quic/QUICStreamVCAdapter.cc b/iocore/net/quic/QUICStreamVCAdapter.cc
index 1dc018337..f268f228d 100644
--- a/iocore/net/quic/QUICStreamVCAdapter.cc
+++ b/iocore/net/quic/QUICStreamVCAdapter.cc
@@ -73,7 +73,7 @@ QUICStreamVCAdapter::_read(size_t len)
if (block->size()) {
block->consume(reader->start_offset);
block->_end = std::min(block->start() + len, block->_buf_end);
- this->_write_vio.ndone += len;
+ this->_write_vio.ndone += block->size();
}
reader->consume(block->size());
}