Hello everybody,

I have a problem in closing inactive connections in activemq classic.

The consumer connects to the broker using STOMP protocol, after a while
(around 1 or 2 hours) of inactivity the consumer cannot receive any
messages through that connection and should create a new connection but
after a new connection is established the old one is still established in
the activemq console! The problem is where new messages are produced
because the broker sends the  first message to the fake connection and the
2nd message to the right connection and 3rd one to the fake one and ...!

I used the following config for STOMP:
<transportConnector name="stomp" uri="stomp://
0.0.0.0:61613?wireFormat.maxInactivityDuration=5000&amp;wireFormat.maxInactivityDurationInitalDelay=1000&amp;transport.useInactivityMonitor=true&amp;maximumConnections=50000&amp;wireFormat.maxFrameSize=104857600&amp;transport.useKeepAlive=false
"/>

I think this configuration says that if a connection is inactive for more
than 5 seconds in 1 second check intervals, it should be closed but it is
not!

I checked this behavior in AMQ 5.15.8 to the latest version.

Any help is appreciated.

Reply via email to