FD_SOCK ignores port_range when opening server sockets
------------------------------------------------------
Key: JGRP-1288
URL:
https://issues.jboss.org/browse/JGRP-1288
Project: JGroups
Issue Type: Bug
Affects Versions: 2.12
Reporter: Manuel Dominguez Sarmiento
Assignee: Bela Ban
Priority: Minor
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira