<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: detected failure on control connection
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/ron_sigal">Ron Sigal</a> in <i>JBoss Remoting</i> - <a href="https://community.jboss.org/message/791782#791782">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Ajay,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The bisocket control connection is used by the server to send requests to the client to create a connection to the bisocket secondary ServerSocket on the server.  It sounds convoluted, but the goal was to create a connection from the server to the client without having to run a ServerSocket on the client.  Depending on the configuration, the server will send PINGs to the client, and the client will emit a "detected failure on control connection" message, and try to recreate the control connection, if a PING is late.  One thing you could try is to expand the window in which a PING is expected.  If the window is too small and 1) the network is congested or 2) the server is busy, you could get spurious failures.  The two relevant configuration parameters are:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p> * pingFrequency: determines how often a ping is sent</p><p> * pingWindowFactor: the value is multipled times the pingFrequency to determine the window during which the PING is expected</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>These parameters are configured in $JBOSS_HOME/server/$CONFIG/deploy/jboss-messaging.sar/remoting-bisocket-service.xml.  Well, that's true for AS 4.2.3.GA.  I don't have a copy of 4.2.1.GA at hand.  In any case, look for remoting-bisocket-service.xml.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Note that in some versions of messaging, PINGing is, in effect, turned off:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <attribute name="pingFrequency" isParam="true">214748364</attribute></p><p>  <attribute name="pingWindowFactor" isParam="true">10</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In others, PINGS are sent frequently, but pingWindowFactor is set to "infinity".  That strategy is used to keep connections open through a firewall.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>You can read more about configuration of the bisocket transport in the Remoting Guide: <a class="jive-link-external-small" href="http://docs.jboss.org/jbossremoting/2.2.3.SP3/html/chapter-configuration.html#d0e3235">http://docs.jboss.org/jbossremoting/2.2.3.SP3/html/chapter-configuration.html#d0e3235</a>.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>As for upgrading to Remoting 2.2.4, I would always recomment upgrading if you can.  Here are the release notes for 2.2.4:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Release Notes - JBoss Remoting - Version 2.2.4</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Bug</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>* [JBREM-1242] - Fix deadlock between Client and MicroRemoteClientInvoker</p><p>* [JBREM-1261] - Prevent DOS attack on BisocketServerInvoker$SecondaryServerSocketThread</p><p>* [JBREM-1268] - RemoteClientInvoker can change configuration map and prevent InvokerRegistry from reusing client invokers</p><p>* [JBREM-1269] - Fix deadlock between Client and MicroRemoteClientInvoker, part 2</p><p>* [JBREM-1276] - SecondaryServerSocketThread should catch java.lang.Error</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Enhancement</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>* [JBREM-1245] - Consider javax.net.ssl.SSLException("Connection has been shutdown") to be retriable</p><p>* [JBREM-1248] - Avoid connecting to a server in catch clause in case of HttpClientInvoker connection failure</p><p>* [JBREM-1262] - Consider java.io.IOException("Software caused connection abort: socket write error") retriable</p><p>* [JBREM-1263] - ClientSocketWrapper.checkConnection() should check returned value</p><p>* [JBREM-1267] - Allow HTTPClientInvoker to call disconnect on HttpURLConnection after use</p><p>* [JBREM-1275] - Make maxthreads, timeout configurable in BisocketServerInvoker.SecondaryServerSocketThread</p><p>* [JBREM-1277] - Allow configuration of socket and bisocket accept thread priority</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Feature Request</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>* [JBREM-1144] - Extend connection identity to server side</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>There was enough there to bump the version to 2.2.4.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>-Ron</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/791782#791782">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>