-
1. Re: clients stop receiving messages when client failure check period = 1 and one client does not exit cleanly
timfox Jun 8, 2010 4:13 PM (in response to hantunca)What happens if you don't disable connection checking?
-
2. Re: clients stop receiving messages when client failure check period = 1 and one client does not exit cleanly
hantunca Jun 8, 2010 4:35 PM (in response to timfox)If I don't disable it, clients continue to receive messages as expected.
by the way, noticed mad an error in the title of this thread - 'client failure check period = 1' should be 'client failure check period = -1'.
Han
-
3. Re: clients stop receiving messages when client failure check period = 1 and one client does not exit cleanly
timfox Jun 8, 2010 5:01 PM (in response to hantunca)I think this is to be expected.
By setting client-failure-check-period to -1 you're disabling the automatic cleanup of connections on client failure.
-
4. Re: clients stop receiving messages when client failure check period = 1 and one client does not exit cleanly
hantunca Jun 9, 2010 10:22 AM (in response to timfox)Tim - I could understand not cleaning up resources at the server, i.e. causing memory leaks, resource usage, etc. But should it cause messages to stop being sent to all other clients? I have my server setup to send messages with no blocking, non-durable, pre-ack, so I'm expecting messages to continue to flow to the clients that are still connected.
thanks,
Han
-
5. Re: clients stop receiving messages when client failure check period = 1 and one client does not exit cleanly
timfox Jun 9, 2010 1:31 PM (in response to hantunca)What's happening here is because you are setting client-failure-check-period to -1, no pings ever get sent to the server, so the server will timeout both connections after connection ttl, irrespective of whether they've crashed or not.
If you set Configuration.clientttloverride to a large value, e.g. Long.MAX_VALUE / 2 you should prevent this. (Don't make it Long.MAX_VALUE or the calc will overflow)
However, it doesn't really make sense for you to disable client failure checking if your clients have a possibility of crashing, since you'll get resource leaks.