Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase IdleTimeout for HTTP connections #2639

Merged
merged 2 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
#### Broadcaster

#### Orchestrator
- \#2639 Increase IdleTimeout for HTTP connections (@leszko)

#### Transcoder
4 changes: 2 additions & 2 deletions server/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

const GRPCConnectTimeout = 3 * time.Second
const GRPCTimeout = 8 * time.Second
const HTTPTimeout = 8 * time.Second
const HTTPIdleTimeout = 10 * time.Minute

var authTokenValidPeriod = 30 * time.Minute
var discoveryAuthWebhookCacheCleanup = 5 * time.Minute
Expand Down Expand Up @@ -205,7 +205,7 @@ func StartTranscodeServer(orch Orchestrator, bind string, mux *http.ServeMux, wo
srv := http.Server{
Addr: bind,
Handler: &lp,
IdleTimeout: HTTPTimeout,
IdleTimeout: HTTPIdleTimeout,
}
return srv.ListenAndServeTLS(cert, key)
}
Expand Down