[jboss-jira] [JBoss JIRA] Created: (JGRP-569) Ignore bind address for TCP server sockets
Bela Ban (JIRA)
jira-events at lists.jboss.org
Sun Jul 29 17:22:47 EDT 2007
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
More information about the jboss-jira
mailing list