Skip to content

Commit

Permalink
set write timeout infinite (#13108)
Browse files Browse the repository at this point in the history
I just changed default value. If we ever want to change it, we can do it
as a command line option.

Co-authored-by: shota.silagadze <[email protected]>
  • Loading branch information
shotasilagadze and shotasilagadzetaal authored Dec 13, 2024
1 parent d442036 commit b865ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cl/beacon/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func ListenAndServe(beaconHandler *LayeredBeaconHandler, routerCfg beacon_router
Handler: mux,
ReadTimeout: routerCfg.ReadTimeTimeout,
IdleTimeout: routerCfg.IdleTimeout,
WriteTimeout: routerCfg.IdleTimeout,
WriteTimeout: routerCfg.WriteTimeout,
}
if err != nil {
log.Warn("[Beacon API] Failed to start listening", "addr", routerCfg.Address, "err", err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/caplin/caplinflags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var (
BeaconApiWriteTimeout = cli.Uint64Flag{
Name: "beacon.api.write.timeout",
Usage: "Sets the seconds for a write time out in the beacon api",
Value: 60,
Value: 31536000,
}
BeaconApiAddr = cli.StringFlag{
Name: "beacon.api.addr",
Expand Down

0 comments on commit b865ae4

Please sign in to comment.