[jboss-remoting-issues] [JBoss JIRA] Resolved: (JBREM-1263) ClientSocketWrapper.checkConnection() should check returned value

Ron Sigal (JIRA) jira-events at lists.jboss.org
Tue Dec 28 13:45:18 EST 2010


     [ https://issues.jboss.org/browse/JBREM-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Sigal resolved JBREM-1263.
------------------------------

    Resolution: Done


Fix applied to branches 2.2 and 2.x.  There is no special unit test.

> ClientSocketWrapper.checkConnection() should check returned value
> -----------------------------------------------------------------
>
>                 Key: JBREM-1263
>                 URL: https://issues.jboss.org/browse/JBREM-1263
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.3.SP1, 2.2.3.SP3
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>            Priority: Minor
>             Fix For: 2.5.3.SP2, 2.2.3.SP4
>
>
> The old and new connection checking tests used by org.jboss.remoting.transport.socket.ClientSocketWrapper and ServerSocketWrapper interact in a negative way.  In the old test, turned on when socket.check_connection is set to true, ClientSocketWrapper sends a 1, ServerSocketWrapper returns it, and if ClientSocketWrapper is able to read a byte, the test passes.  But in the new test, ServerSocketWrapper writes two 254 bytes as it is closing.  If ClientSocketWrapper is doing the old test and it reads one of these bytes, it thinks the test has passed.  It should check for the actual value of the returned byte. 

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

        


More information about the jboss-remoting-issues mailing list