[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1146) Treat IOException("Connection reset by peer") as a retriable exception

Trustin Lee (JIRA) jira-events at lists.jboss.org
Sun Aug 16 21:27:26 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBREM-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12481040#action_12481040 ] 

Trustin Lee commented on JBREM-1146:
------------------------------------

You might find the following regular expression useful:

http://fisheye.jboss.org/browse/Netty/trunk/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java?r=1633#l147

I'm not sure it covers all related error messages, but it seems to work fine on Windows and Linux.  However, this will not work very well if the O/S generates localized error messages.



> Treat IOException("Connection reset by peer") as a retriable exception
> ----------------------------------------------------------------------
>
>                 Key: JBREM-1146
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1146
>             Project: JBoss Remoting
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.1 (Flounder), 2.2.3
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.5.2 (Flounder), 2.2.3.SP1
>
>
> org.jboss.remoting.transport.socket.MicroSocketClientInvoker uses the parameter "numberOfCallRetries" to determine the number of invocation attempts to make upon receiving java.net.SocketExceptions.  For example, SocketException("Connection reset") will cause MicroSocketClientInvoker to get another socket and try again.  However, if a connection is reset on the other side, then an IOException("Connection reset by peer") is thrown, which doesn't lead to a retry.  It should be possible to configure the socket transport to treat an IOException("Connection reset by peer") as retriable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-remoting-issues mailing list