disable write timeout
This commit is contained in:
@@ -42,8 +42,9 @@ func New(logger *slog.Logger, cron gocron.Scheduler, cancel context.CancelFunc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
WriteTimeout: 120 * time.Second,
|
//WriteTimeout: 120 * time.Second,
|
||||||
|
WriteTimeout: 0,
|
||||||
ReadTimeout: 30 * time.Second,
|
ReadTimeout: 30 * time.Second,
|
||||||
TLSConfig: tlsConfig,
|
TLSConfig: tlsConfig,
|
||||||
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)),
|
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)),
|
||||||
|
Reference in New Issue
Block a user