1. ActiveMQ
  2. AMQ-2088

Change the InactivityMonitor to clear its flag as soon as a few bytes are received on a connection rather than only after an entire message has been assembled.


    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.3.0
    • Component/s: Transport
    • Labels:


      On slow connections with larger messages to be exchanged, the inactivity monitor might kick in, drop the network connection and re-establish it again. This prevents two brokers from exchanging larger messages on a slow connection as the transmission always gets interrupted.
      See the discussion of this on
      The problem is that the InactivityMonitor always waits for a complete message to be assembled on an active connection before clearing its internal flag.

      I propose to change the behavior of the InactivityMonitor so that it clears its flag already when a few bytes were received on a network connection rather than waiting for the entire message to be sent. This should work around the problem of connections being dropped and re-established periodically when receiving large messages.

        Issue Links


          Torsten Mielke created issue -
          Dejan Bosanac made changes -
          Field Original Value New Value
          Assignee Dejan Bosanac [ dejanb ]
          Dejan Bosanac made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.3.0 [ 11914 ]
          Hiram Chirino made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Hiram Chirino made changes -
          Link This issue breaks AMQ-2511 [ AMQ-2511 ]
          Hiram Chirino made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jeff Turner made changes -
          Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]


            • Assignee:
              Dejan Bosanac
              Torsten Mielke
            • Votes:
              1 Vote for this issue
              1 Start watching this issue


              • Created: