This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch fix-protocol-lost
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/fix-protocol-lost by this push:
new 6dd5fb4 added a delay time for delete connection
6dd5fb4 is described below
commit 6dd5fb490265fc1be7e86a001f143da9fc93de53
Author: mrproliu <[email protected]>
AuthorDate: Wed Nov 13 23:57:00 2024 +0900
added a delay time for delete connection
---
pkg/accesslog/common/connection.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkg/accesslog/common/connection.go
b/pkg/accesslog/common/connection.go
index 307f94e..54c4dc3 100644
--- a/pkg/accesslog/common/connection.go
+++ b/pkg/accesslog/common/connection.go
@@ -636,6 +636,8 @@ func (c *ConnectionManager) OnBuildConnectionLogFinished() {
if shouldDelete && con.DeleteAfter == nil {
deleteAfterTime := now.Add(connectionDeleteDelayTime)
con.DeleteAfter = &deleteAfterTime
+ log.Debugf("detected the connection has mark as
deletable, so add a delay timer, connection ID: %d, random ID: %d",
+ con.ConnectionID, con.RandomID)
}
if shouldDelete && now.After(*con.DeleteAfter) {