disable server timeouts

This commit is contained in:
Vladislav Yarmak 2020-05-24 14:45:49 +03:00
parent 788631f015
commit 118546f86a
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,10 @@ func run() int {
Handler: NewProxyHandler(args.timeout, auth, proxyLogger),
ErrorLog: log.New(logWriter, "HTTPSRV : ", log.LstdFlags | log.Lshortfile),
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)), // No HTTP/2
ReadTimeout: 0,
ReadHeaderTimeout: 0,
WriteTimeout: 0,
IdleTimeout: 0,
}
mainLogger.Info("Starting proxy server...")