From bb7e73643eb2f1f4f8595ca058f3518b3f30ce87 Mon Sep 17 00:00:00 2001 From: smail Date: Thu, 1 Oct 2026 11:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E9=95=BF=E6=8F=92=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=93=8D=E5=BA=94=E8=B6=85=E6=97=B6=E5=B9=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=AF=B7=E6=B1=82=E5=A4=B4=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/hooks/framework/framework.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/hooks/framework/framework.go b/backend/hooks/framework/framework.go index 99ae370..b974575 100644 --- a/backend/hooks/framework/framework.go +++ b/backend/hooks/framework/framework.go @@ -1,7 +1,6 @@ package framework import ( - "git.pcux.cn/xuans/Smail/utils/runtimepath" "bytes" "crypto/subtle" "encoding/json" @@ -10,6 +9,7 @@ import ( "git.pcux.cn/xuans/Smail/dto/parsemail" "git.pcux.cn/xuans/Smail/models" "git.pcux.cn/xuans/Smail/utils/context" + "git.pcux.cn/xuans/Smail/utils/runtimepath" log "github.com/sirupsen/logrus" "io" "net" @@ -397,9 +397,10 @@ func (p *Plugin) Run() error { }) } server := http.Server{ - ReadTimeout: 5 * time.Second, - WriteTimeout: 5 * time.Second, - Handler: p.authenticatedHandler(p.limitedHandler(mux)), + ReadTimeout: 5 * time.Second, + ReadHeaderTimeout: 5 * time.Second, + WriteTimeout: 35 * time.Second, + Handler: p.authenticatedHandler(p.limitedHandler(mux)), } unixListener, err := pluginListener(os.Args[1])