Keep-alive Connection #481
scholes231
started this conversation in
General
Replies: 1 comment
-
Hi @scholes231, Setting keep-alive is not possible with the current version (2.15.0). But with the latest 2.16.0 you can set keep alive as follows: var factory = new ConnectionFactory();
factory.TCP.KeepAliveTime = 1000 * 30; // 30 seconds
factory.TCP.KeepAliveInterval = 1000; // 1 seconds Please let me know if this solves your issue. Best regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my Asp.net project a create a Consumer like this:
builder.Services.TryAddScoped();
builder.AddConsumer(address, routingType, queueName, HandleMessage<TMessage, TConsumer>);
And we noticed that at certain intervals (1, 3, or more minutes later), there is a reconnect occurring. In the logs: ClosedByPeer=True, Error=error(condition:amqp:connection:forced,description:The transport 'TcpTransport' is closed.)
What do I wrong? How can I set keep-alive connection
Beta Was this translation helpful? Give feedback.
All reactions