Invalidate idle connections

19 views
Skip to first unread message

Andrzej Kolodziej

unread,
May 9, 2024, 12:14:36 PMMay 9
to nats
Hi,

I'd like to set the maximum amount of time after all idle connections to the NATS Server will be invalidated, but I haven't found any mentions on that in the documentation. Is this feasible? If not, is this planned in the future releases?

Kind Regards,
Andrzej
Message has been deleted

Jean-Noel Moyne

unread,
Jun 13, 2024, 5:34:22 PMJun 13
to nats
It has to be driven by the application, not the server. NATS is real-time pub/sub and as such new messages could be published to a subject your application is listening to at any time, and similarly your application could want to publish a message at any time, so the mode of operation is for the application to try to always be connected ... until it decides to close the connection. 
Reply all
Reply to author
Forward
0 new messages