Havret / dotnet-activemq-artemis-client

.NET Client for Apache ActiveMQ Artemis
https://havret.github.io/dotnet-activemq-artemis-client/
MIT License
63 stars 11 forks source link

Expose TCP keep alive settings #482

Closed Havret closed 7 months ago

Havret commented 7 months ago

Feature description

Introduce configurable options within the ConnectionFactory to set KeepAliveTime and KeepAliveInterval for TCP connections. This feature aims to enhance connection stability and manageability by allowing developers to specify keep-alive parameters, catering to different network conditions and application requirements.

Feature in action

var factory = new ConnectionFactory();
factory.TCP.KeepAliveTime = 1000 * 30; // 30 seconds
factory.TCP.KeepAliveInterval = 1000; // 1 seconds 

Additional context

Discussed in https://github.com/Havret/dotnet-activemq-artemis-client/discussions/481.