Skip to content

Commit

Permalink
Reduce response chunk arrival timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Dec 31, 2024
1 parent b4f7c2d commit 47a777a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
public class Eth2IncomingRequestHandler<
TRequest extends RpcRequest & SszData, TResponse extends SszData>
implements RpcRequestHandler {

private static final Logger LOG = LogManager.getLogger();

private static final Duration RECEIVE_INCOMING_REQUEST_TIMEOUT = Duration.ofSeconds(10);

private final PeerLookup peerLookup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum State {
private static final Logger LOG = LogManager.getLogger();

@VisibleForTesting static final Duration READ_COMPLETE_TIMEOUT = Duration.ofSeconds(10);
@VisibleForTesting static final Duration RESPONSE_CHUNK_ARRIVAL_TIMEOUT = Duration.ofSeconds(30);
@VisibleForTesting static final Duration RESPONSE_CHUNK_ARRIVAL_TIMEOUT = Duration.ofSeconds(10);

private final AsyncRunner asyncRunner;
private final int maximumResponseChunks;
Expand Down

0 comments on commit 47a777a

Please sign in to comment.