From 792d7d16c03aea2edf3266d0092225af6b166d8a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 8 Mar 2019 09:59:13 -0500 Subject: [PATCH] try fixing timeout issue --- llarp/link/utp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llarp/link/utp.cpp b/llarp/link/utp.cpp index 8901656d1..4b8c81b9b 100644 --- a/llarp/link/utp.cpp +++ b/llarp/link/utp.cpp @@ -230,12 +230,12 @@ namespace llarp { if(state == eClose) return true; - if(now < lastActive) + if(now <= lastActive) return false; auto dlt = now - lastActive; if(dlt >= sessionTimeout) { - LogInfo("session timeout reached for ", remoteAddr); + LogInfo("session timeout reached for ", remoteAddr, " dlt=", dlt); return true; } return false;