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

This commit is contained in:
Serge Tkatchouk
2020-03-12 13:27:51 +00:00
committed by sentriz
parent 9493b8a6a3
commit a5ab437dd6
+2 -2
View File
@@ -55,8 +55,8 @@ func New(opts Options) *Server {
Addr: opts.ListenAddr, Addr: opts.ListenAddr,
Handler: r, Handler: r,
ReadTimeout: 5 * time.Second, ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second, WriteTimeout: 80 * time.Second,
IdleTimeout: 15 * time.Second, IdleTimeout: 60 * time.Second,
} }
return &Server{ return &Server{
Server: server, Server: server,