Tune HTTP response timeouts, to allow "slow" FFmpeg to finish

This commit is contained in:
Serge Tkatchouk
2020-02-13 23:04:24 +08:00
committed by sentriz
parent 9493b8a6a3
commit a5ab437dd6

View File

@@ -55,8 +55,8 @@ func New(opts Options) *Server {
Addr: opts.ListenAddr,
Handler: r,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
IdleTimeout: 15 * time.Second,
WriteTimeout: 80 * time.Second,
IdleTimeout: 60 * time.Second,
}
return &Server{
Server: server,