Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
revert ReadHeaderTimeout config change
Browse files Browse the repository at this point in the history
  • Loading branch information
danburck committed Jul 18, 2022
1 parent 76fa6a0 commit e25dd5b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions server/json_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ func StartJSONRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr, tmEn
}

httpSrv := &http.Server{
Addr: config.JSONRPC.Address,
Handler: handlerWithCors.Handler(r),
ReadTimeout: config.JSONRPC.HTTPTimeout,
WriteTimeout: config.JSONRPC.HTTPTimeout,
IdleTimeout: config.JSONRPC.HTTPIdleTimeout,
ReadHeaderTimeout: config.JSONRPC.HTTPTimeout,
Addr: config.JSONRPC.Address,
Handler: handlerWithCors.Handler(r),
ReadTimeout: config.JSONRPC.HTTPTimeout,
WriteTimeout: config.JSONRPC.HTTPTimeout,
IdleTimeout: config.JSONRPC.HTTPIdleTimeout,
}
httpSrvDone := make(chan struct{}, 1)

Expand Down

0 comments on commit e25dd5b

Please sign in to comment.