[
http://jira.jboss.com/jira/browse/JGRP-569?page=all ]
Bela Ban resolved JGRP-569.
---------------------------
Resolution: Done
Fixed in ConnectionTable (ConnectionTableNIO needs further review, especially as we'll
merge it into ConnectionTable).
Not done for FD_SOCK, as we don't accept connections on other NICs
Ignore bind address for TCP server sockets
------------------------------------------
Key: JGRP-569
URL:
http://jira.jboss.com/jira/browse/JGRP-569
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assigned To: Bela Ban
Priority: Minor
Fix For: 2.6
Currently, we use the interface defined by bind_addr (or -Djgroups.bind_addr) to bind TCP
server sockets to. We might ignore this and simply bind the TCP server socket to *all*
NICs, e.g. by replacing
ServerSocket srv_sock=new ServerSocket(port, length, bind_addr)
with
ServerSocket srv_sock=new ServerSocket(port).
The advantage is that in the latter case, the server socket will accept packets to the
given port from *any* (wildcard) interface (0.0.0.0), whereas in the former case it will
accept packets only from bind_addr. This reduces chances of misconfiguration.
Example: {Basic}ConnectionTable, FD_SOCK
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira