From 26c8b6c40506b199c0ed9bcf95ff9f531012e505 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 19 May 2024 10:00:16 +0000 Subject: [PATCH] =?utf8?q?Improve=20=E8=AE=BE=E7=BD=AE=E7=9B=B4=E6=92=AD?= =?utf8?q?=E6=B5=81=E5=86=99=E5=85=A5=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Reply/stream.go b/Reply/stream.go index 9c2042b..8365b51 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -1458,6 +1458,7 @@ func (t *M4SStream) PusherToHttp(conn net.Conn, w http.ResponseWriter, r *http.R if len(b) == 0 { return true } + _ = conn.SetWriteDeadline(time.Now().Add(time.Second * 30)) if n, err := w.Write(b); err != nil || n == 0 { return true } -- 2.39.2