From b66833354690a03e52e8555fc9c2e7f3100ea0a0 Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:27:10 +0330 Subject: [PATCH] set splice-timeout to 24 hours --- proxy/proxy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 1ae9fea4..e88a5573 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -595,10 +595,10 @@ func CopyRawConnIfExist(ctx context.Context, readerConn net.Conn, writerConn net errors.LogInfo(ctx, "CopyRawConn splice") statWriter, _ := writer.(*dispatcher.SizeStatWriter) //runtime.Gosched() // necessary - time.Sleep(time.Millisecond) // without this, there will be a rare ssl error for freedom splice - timer.SetTimeoutIfNotOverridden(8 * time.Hour) // prevent leak, just in case + time.Sleep(time.Millisecond) // without this, there will be a rare ssl error for freedom splice + timer.SetTimeoutIfNotOverridden(24 * time.Hour) // prevent leak, just in case if inTimer != nil { - inTimer.SetTimeoutIfNotOverridden(8 * time.Hour) + inTimer.SetTimeoutIfNotOverridden(24 * time.Hour) } w, err := tc.ReadFrom(readerConn) if readCounter != nil {