Skip to content

Commit

Permalink
configure RabbitMq continuation timeout (#2879)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin SCHMITT <[email protected]>
Co-authored-by: Ian Cooper <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2023
1 parent 0a12b20 commit a574fec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ protected RmqMessageGateway(RmqMessagingGatewayConnection connection)
_connectionFactory = new ConnectionFactory
{
Uri = Connection.AmpqUri.Uri,
RequestedHeartbeat = TimeSpan.FromSeconds(connection.Heartbeat)
RequestedHeartbeat = TimeSpan.FromSeconds(connection.Heartbeat),
ContinuationTimeout = TimeSpan.FromSeconds(connection.ContinuationTimeout)
};

DelaySupported = Connection.Exchange.SupportDelay;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public RmqMessagingGatewayConnection()
/// </summary>
public bool PersistMessages { get; set; }

/// <summary>
/// Gets or sets RabbitMq protocol timeouts, in seconds. Defaults to 20s.
/// <see cref="ConnectionFactory.ContinuationTimeout" /> for more information.
/// </summary>
public ushort ContinuationTimeout { get; set; } = 20;
}

/// <summary>
Expand Down

0 comments on commit a574fec

Please sign in to comment.