Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3434

Can not close underlying artemis connection when using an SSL connection factory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • AMQ 7.7.0.CR1
    • broker-core, security
    • None

      Closing a JMS session does not close underlying Artemis core connection if using an SSL configured connection factory.

      Test Code attached. To reproduce:

      1. Client code is SimpleRemoteJMSExample.java
      2. To build:
            export JBOSS_HOME=./jboss-eap-7.1
            javac -classpath=./jboss-eap-7.1/bin/client/jboss-client.jar:. *.java
            
      3. Run EAP: ./jboss-eap-7.1/bin/standalone.sh -c standalone-full.xml
      4. Run client using ./run.sh. After 60 seconds the following message will display in the JBoss console window:
            2020-01-07 15:59:01,958 WARN  [org.apache.activemq.artemis.core.client] (Thread-0 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@29ea055b)) AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:33381 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
            
      5. To switch to non_ssl, edit SimpleRemoteJMSExample.java, and change following two lines:
            // 1- Switch between secure an non secure URL
            // 2- Switch between secure an non secure connection factory and rebuild/rerun. with non SSL, issue does not happen
            

      test code/config is available at https://drive.google.com/open?id=1q_tq9rnNtJpiDsmIYsfFDZGrQ0leztoC

              fnigro Francesco Nigro
              ehugonne1@redhat.com Emmanuel Hugonnet
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: