Skip to content

Commit

Permalink
cmd/incusd: Set keep-alive timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Aug 6, 2024
1 parent 2184a9f commit 60850ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/incusd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/url"
"os"
"strings"
"time"

"github.com/gorilla/mux"

Expand Down Expand Up @@ -164,6 +165,7 @@ func restServer(d *Daemon) *http.Server {
return &http.Server{
Handler: &httpServer{r: mux, d: d},
ConnContext: request.SaveConnectionInContext,
IdleTimeout: 30 * time.Second,
}
}

Expand Down

0 comments on commit 60850ac

Please sign in to comment.