bryancall commented on a change in pull request #6772:
URL: https://github.com/apache/trafficserver/pull/6772#discussion_r424703095
##########
File path: iocore/net/UnixNetVConnection.cc
##########
@@ -1353,7 +1353,7 @@ UnixNetVConnection::set_inactivity_timeout(ink_hrtime
timeout_in)
{
Debug("socket", "Set inactive timeout=%" PRId64 ", for NetVC=%p",
timeout_in, this);
inactivity_timeout_in = timeout_in;
- next_inactivity_timeout_at = Thread::get_hrtime() + inactivity_timeout_in;
+ next_inactivity_timeout_at = (timeout_in > 0) ? Thread::get_hrtime() +
inactivity_timeout_in : 0;
Review comment:
Won't this then get set to the default inactivity timeout in inactivity
cop? I am OK with that, since we shouldn't allow connections to stick around
forever.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]