Skip to content

Commit

Permalink
chore: increase timeout to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell committed Nov 29, 2024
1 parent 2d3e294 commit 0c7db11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Libplanet.Net/Consensus/Gossip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ await optimized.ParallelForEachAsync(
Message[] replies = (await _transport.SendMessageAsync(
pair.Key,
want,
TimeSpan.FromSeconds(1),
TimeSpan.FromSeconds(5),
idsToGet.Length,
true,
ctx)).ToArray();
Expand Down
4 changes: 2 additions & 2 deletions src/Libplanet.Net/Transports/NetMQTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public void BroadcastMessage(IEnumerable<BoundPeer> peers, MessageContent conten
.AddTag("Message", content.Type)
.AddTag("Peers", boundPeers.Select(x => x.PeerString));
await boundPeers.ParallelForEachAsync(
peer => SendMessageAsync(peer, content, TimeSpan.FromSeconds(3), ct),
peer => SendMessageAsync(peer, content, TimeSpan.FromSeconds(5), ct),
ct
);

Expand Down Expand Up @@ -734,7 +734,7 @@ private void DoReply(

// FIXME The current timeout value(1 sec) is arbitrary.
// We should make this configurable or fix it to an unneeded structure.
if (_router!.TrySendMultipartMessage(TimeSpan.FromSeconds(3), message))
if (_router!.TrySendMultipartMessage(TimeSpan.FromSeconds(5), message))
{
_logger.Debug(
"{Message} as a reply to {Identity} sent", messageType, reqId);
Expand Down

0 comments on commit 0c7db11

Please sign in to comment.