Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-144

MAX_OUTBOUND_CHANNELS and MAX_INBOUND_CHANNELS options not honoured while opening channel

XMLWordPrintable

      Creation of more than 40 channels on the same connection leads to the following exception, even if the RemotingOptions.MAX_OUTBOUND_CHANNELS is configured for a higher value, during connection creation.

      org.jboss.remoting3.ProtocolException: Too many channels open
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.handleOutboundChannelOpen(RemoteConnectionHandler.java:177)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.open(RemoteConnectionHandler.java:303)
      	at org.jboss.remoting3.ConnectionImpl.openChannel(ConnectionImpl.java:75)
      	at org.jboss.ejb.client.test.client.ChannelOpenStressTestCase$CustomConnection.openChannel(ChannelOpenStressTestCase.java:130)
      

      Looking at the code in remoting, both MAX_OUTBOUND_CHANNELS and MAX_INBOUND_CHANNELS options in RemotingOptions are unused and the RemoteConnectionHandler defaults it to 40.

              dlloyd@redhat.com David Lloyd
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: