Tune HTTP response timeouts, to allow "slow" FFmpeg to finish
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user