Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6185

Keep-Alive does not work in broker network when connected over HTTP

    XMLWordPrintableJSON

Details

    Description

      The keep-alive mechanism does not work (no keep-alives are sent), when the connections go over HTTP layer.
      The InactivityMonitor closes then the connection and new connection to target is established. This repeats every 30 seconds (the default time out).

      E.g.: Let's have a simple broker network. Machine A connects to machine B with duplex network bridge over HTTP...

      Machine A config:
      <networkConnector duplex="true" uri="statichttp://machineB:61617)" name="bridgeToB" />

      Machine B config:
      <transportConnector name="http" uri="http://0.0.0.0:61617?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>

      When the transport layer is changed to e.g. TCP then keep-alive works and the connection is persistent.

      Attachments

        1. amq6185.diff
          0.5 kB
          Andrea Marziali

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jiri.formanek@atos.net Jiri Formanek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: