ActiveMQ
  1. ActiveMQ
  2. AMQ-2450

TCP transport silently ignores java.net.SocketTimeoutException exceptions

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.2, 5.3.0
    • Fix Version/s: 5.x
    • Component/s: Transport
    • Labels:
      None

      Description

      When a client is configured with a soTimeout query on a connection URI, the exception gets caught and ignored inside the main TcpTransport class. From what I can tell this has existed since 4.x. I'm not 100% sure if this is the intended behavior but in our particular use case we are expecting the socket to be closed after a period of no socket activity and reconnect again using the failover transport logic. In my opinion it makes sense to throw this exception out of the transport in the case where a slow broker may be taking too long to service a request. I've narrowed down the offending code to the source file org.apache.activemq.transport.tcp.TcpTransport@204.

        Activity

        Gary Tully made changes -
        Fix Version/s 5.6.0 [ 12316331 ]
        Fix Version/s 5.5.0 [ 12315626 ]
        Dejan Bosanac made changes -
        Fix Version/s 5.5.0 [ 12315626 ]
        Fix Version/s 5.4.2 [ 12315625 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Bruce Snyder made changes -
        Fix Version/s 5.5.0 [ 12344 ]
        Fix Version/s 5.4.1 [ 12332 ]
        Hadrian Zbarcea made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Fix Version/s 5.4.0 [ 12110 ]
        Fix Version/s 4.1.3 [ 11901 ]
        Trevor Pounds made changes -
        Field Original Value New Value
        Attachment SocketTimeoutTest.java [ 18526 ]
        Trevor Pounds created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Trevor Pounds
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development