4 Replies Latest reply on Oct 21, 2013 5:37 AM by Tomaz Cerar

    port offset 0 not working

    Philippe Marschall Expert

      Hi have the following configuration file (simplified):

       

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="8080">
          <socket-binding name="http" port="0"/>
      </socket-binding-group>
      

       

      I would expect the http port to be bound to 8000: base port of 8000 plus an offset of 0. This is not what is happening, instead port 0 (a random free port) is bound. The issue seems to be in org.jboss.as.network.SocketBinding#calculatePort(). Is this a bug? Should I create an issue and submit a PR?