I think you're asking how to ensure that the broker will close a client connection if that connection is idle for 60s or longer. If so, that setting is the wireFormat.maxInactivityDuration element of the URIs you provided, and you'll want to change the current value of 0 to 60000 (milliseconds) for the transportConnector representing whichever protocol(s) you want to change. From your description, that's at least MQTT, and you'll need to decide whether to make the same change for OpenWire.
Tim On Mon, Apr 19, 2021, 8:03 PM Wei Zheng <tjzheng...@gmail.com> wrote: > To whom this may concern, > > Sorry, > I have enabled the ActiveMQ Broker for MQTT, > and i want to set timeout to 60 sec. > so I set it as below, but it doesn't work. > you know there are many option can be set for timeout, > It would be helpful if you could tell me about setting mistakes or setting > methods. > Thanks. > -------------- > <transportConnector name="openwire" uri="tcp:// > 0.0.0.0:61616?transport.maximumConnections=1000& > <http://0.0.0.0:61616/?transport.maximumConnections=1000&>; > wireFormat.maxFrameSize=104857600& > transport.keepAlive=false& > wireFormat.maxInactivityDuration=720000& > transport.connectionTimeout=1200000"/> > <transportConnector name="mqtt" uri="mqtt:// > > 0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600&wireFormat.maxInactivityDuration=0 > < > http://0.0.0.0:1883/?maximumConnections=1000&wireFormat.maxFrameSize=104857600&wireFormat.maxInactivityDuration=0 > > > "/> >