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:52 UTC

[trafficserver] 04/12: Update inactivity timer

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 6802f7cc6a96aa37073f690387f7bc3ebf8ee1d2
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Wed Jun 15 09:30:25 2022 +0900

    Update inactivity timer
---
 iocore/net/QUICNetVConnection_quiche.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/iocore/net/QUICNetVConnection_quiche.cc b/iocore/net/QUICNetVConnection_quiche.cc
index 535135abb..ff287da58 100644
--- a/iocore/net/QUICNetVConnection_quiche.cc
+++ b/iocore/net/QUICNetVConnection_quiche.cc
@@ -322,6 +322,7 @@ QUICNetVConnection::handle_received_packet(UDPPacket *packet)
   uint8_t *buf         = reinterpret_cast<uint8_t *>(block->buf());
   uint64_t buf_len     = block->size();
 
+  net_activity(this, this_ethread());
   quiche_recv_info recv_info = {
     &packet->from.sa, static_cast<socklen_t>(packet->from.isIp4() ? sizeof(packet->from.sin) : sizeof(packet->from.sin6))};
 
@@ -543,6 +544,7 @@ QUICNetVConnection::_handle_write_ready()
     if (written > 0) {
       udp_payload->fill(written);
       this->_packet_handler->send_packet(this->_udp_con, this->con.addr, udp_payload);
+      net_activity(this, this_ethread());
     }
   } while (written > 0);
 }