[
http://jira.jboss.com/jira/browse/JBREM-752?page=comments#action_12364074 ]
Claudia Richter commented on JBREM-752:
---------------------------------------
changing these lines in SocketServerInvoker.refreshServerSocket():
createServerSocket(getServerBindPort(), backlog, bindAddress);
newServerSocket.setReuseAddress(reuseAddress);
to this:
ServerSocket newServerSocket = createServerSocket();
newServerSocket.setReuseAddress(reuseAddress);
InetSocketAddress address = new InetSocketAddress(bindAddress, getServerBindPort());
newServerSocket.bind(address, backlog);
and adding this simple method to SocketServerInvoker:
private ServerSocket createServerSocket() throws IOException {
return getServerSocketFactory().createServerSocket();
}
should do it.
SSLSocket runs into BindException
---------------------------------
Key: JBREM-752
URL:
http://jira.jboss.com/jira/browse/JBREM-752
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: transport
Affects Versions: 2.2.0.SP4, 2.2.0.SP3, 2.2.0.SP2, 2.2.0.SP1, 2.2.0.GA (Bluto),
2.2.0.Beta1 (Bluto)
Reporter: Claudia Richter
during a Socket refresh in the SocketServerInvoker Class (Method refreshServerSocket() )
sometimes a BindException occures.
The reason is that reuseAddress is set after the ServerSocket is bound. It is necessary
to first create an unbound ServerSocket, then set reuseAddress and then bind the
ServerSocket.
--
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