Marius Grybe created AMQ-7226:
---------------------------------
Summary: 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
Reporter: Marius Grybe
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
(v7.6.3#76005)