Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1288

FD_SOCK ignores port_range when opening server sockets

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Done
    • 2.12
    • 2.12
    • None
    • Low

    Description

      FD_SOCK.startServerSocket() calls Util.createServerSocket(), which does not take into account a port_range. The docs for FD_SOCK state that port_range applies both for client and server socket ports. The configured value should be used instead of incrementing the port number until a free port can be bound to.

      Also, the port number keeps incrementing - there's no check for MAX_PORT i.e. 65535 which could mean this could loop forever, unless an IOException is thrown before because of an invalid port number, but I don't know whether this is specified anywhere.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              madsrenxo Manuel Dominguez Sarmiento (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified