0 Replies Latest reply on Sep 1, 2012 6:41 AM by Leonid GL

    Server doesn't close dead connection

    Leonid GL Newbie

      I use HornetQ 2.1.14 within the jboss 6.1. My ConectionFactory configuration seems like following:

       

      <connection-factory name="NettyConnectionFactory">

            <xa>true</xa>

            <connectors>

               <connector-ref connector-name="netty"/>

            </connectors>

            <entries>

               <entry name="/ConnectionFactory"/>

               <entry name="/XAConnectionFactory"/>

            </entries>

       

            <consumer-window-size>0</consumer-window-size>

      <client-failure-check-period>4000</client-failure-check-period>

      <connection-ttl>8000</connection-ttl>

      <reconnect-attempts>3</reconnect-attempts>

            <confirmation-window-size>1048576</confirmation-window-size>

      </connection-factory>

       

      I start my client and using this connection receive some messages and DON't ack them. The JBOss Admin Console shows

      "Consumer count = 1". Then I kill my client just by closing it (without session.close or consumer.close) and

      the server log shows:

       

      WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /172.20.66.201:60340. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]

       

      WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /172.20.66.201:60348. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]

       

      After this output are ~20 mins gone, but the "conusmer count" is stil 1 and to get that messages is not possible,

      because the old session is still living!

       

      The question is - do I configure somthing wrong or is it a bug? Thank you.