[ 
https://issues.apache.org/jira/browse/AMQ-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Pavlovich updated AMQ-7226:
--------------------------------
    Affects Version/s: 5.15.9

> StompInactivityMonitor should perform write checks without initial delay
> ------------------------------------------------------------------------
>
>                 Key: AMQ-7226
>                 URL: https://issues.apache.org/jira/browse/AMQ-7226
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: STOMP
>    Affects Versions: 5.15.9
>            Reporter: Marius Grybe
>            Priority: Major
>
> Class org.apache.activemq.transport.stomp.StompInactivityMonitor uses initial 
> delay for write checks which causes STOMP clients to disconnect as a result 
> of a first missing PONG request. 
> STOMP CONNECT log fragment:
> {code:java}
> >>> CONNECT
> X-Auth-Token:test
> accept-version:1.2,1.1,1.0
> heart-beat:25000,25000
> <<< CONNECTED
> server:ActiveMQ/5.15.9
> heart-beat:25000,25000
> session:client.test
> version:1.2
> user-name:test
> {code}
> Both client and server agrees to issue PING and PONG requests every 25 
> seconds but ActiveMQ issues a first PONG frame after 50 seconds which causes 
> current client to disconnect (assuming server is gone).
> Probably it would be better to eliminate initial delay altogether or make it 
> configurable.
> Relevant methods:
> - 
> org.apache.activemq.transport.stomp.ProtocolConverter#configureInactivityMonitor
> - org.apache.activemq.transport.AbstractInactivityMonitor#startMonitorThreads
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to