Skip to content

Commit

Permalink
timeout 3
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Nov 28, 2024
1 parent 368bb48 commit 2d3e294
Showing 1 changed file with 2 additions and 2 deletions.
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(1), ct),
peer => SendMessageAsync(peer, content, TimeSpan.FromSeconds(3), 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(1), message))
if (_router!.TrySendMultipartMessage(TimeSpan.FromSeconds(3), message))
{
_logger.Debug(
"{Message} as a reply to {Identity} sent", messageType, reqId);
Expand Down

0 comments on commit 2d3e294

Please sign in to comment.