This commit is contained in:
naiba 2024-10-23 00:03:19 +08:00
parent c4011934f7
commit cb9436a8f7

View File

@ -125,7 +125,7 @@ func main() {
mixedHandler := newHTTPandGRPCMux(httpHandler, grpcHandler)
http2Server := &http2.Server{}
http1Server := &http.Server{Handler: h2c.NewHandler(mixedHandler, http2Server)}
http1Server := &http.Server{Handler: h2c.NewHandler(mixedHandler, http2Server), ReadHeaderTimeout: time.Second * 5}
go dispatchReportInfoTask()