activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-2450) TCP transport silently ignores java.net.SocketTimeoutException exceptions
Date Fri, 01 Apr 2011 11:22:17 GMT

     [ https://issues.apache.org/jira/browse/AMQ-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Tully updated AMQ-2450:
----------------------------

    Fix Version/s:     (was: 5.5.0)
                   5.6.0

> TCP transport silently ignores java.net.SocketTimeoutException exceptions
> -------------------------------------------------------------------------
>
>                 Key: AMQ-2450
>                 URL: https://issues.apache.org/jira/browse/AMQ-2450
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.2, 5.3.0
>            Reporter: Trevor Pounds
>             Fix For: 5.6.0
>
>         Attachments: SocketTimeoutTest.java
>
>
> 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|http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java?r=HEAD#l204].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message