[jboss-jira] [JBoss JIRA] Resolved: (JGRP-1288) FD_SOCK ignores port_range when opening server sockets
Bela Ban (JIRA)
jira-events at lists.jboss.org
Mon Feb 14 06:18:14 EST 2011
[ https://issues.jboss.org/browse/JGRP-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban resolved JGRP-1288.
----------------------------
Resolution: Done
> 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
> Fix For: 2.12
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> 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
More information about the jboss-jira
mailing list