]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 读超时
authorqydysky <qydysky@foxmail.com>
Fri, 9 Jun 2023 01:03:14 +0000 (01:03 +0000)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 01:03:14 +0000 (01:03 +0000)
Reply/stream.go

index 445e59e72f947a493cc9d88bfa64b333aa636706..ed568bbe7fc906981d52d51b5c3db69ff62dca23 100644 (file)
@@ -796,7 +796,7 @@ func (t *M4SStream) saveStreamFlv() (e error) {
                                NoResponse:       true,
                                Async:            true,
                                Proxy:            t.common.Proxy,
-                               WriteLoopTO:      readTO * 2 + 1,
+                               WriteLoopTO:      int(readTO) * 2 + 1,
                                Header: map[string]string{
                                        `Host`:            surl.Host,
                                        `User-Agent`:      `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0`,