Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure RabbitMq continuation timeout #2879

Merged
merged 2 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading