-
Bug
-
Resolution: Done
-
Major
-
19.0.0.Final, 20.0.0.Beta3
-
None
Consider the following code:
InetSocketAddress bindAddress = ...; SocketBindingManager manager = ...; SocketChannel channel = SocketChannel.open(); // channel is not yet bound manager.getNamedRegistry().registerChannel("foo", channel); // Bind channel channel.bind(bindAddress); System.out.println(manager.getManagedBinding("foo").getBindAddress());
Ideally, this would print the value of the bindAddress of the channel, however, it returns null.
This is because the registry reads the bind address eagerly, so if the channel is not bound until after it is registered, its ManagedBinding will never return the correct value.
This is problematic for JGroups, whose SocketFactory (that instruments socket binding manager registration) returns unbound channels.
- blocks
-
WFLY-17339 JGroups ServerSocketChannel creation is hanging intermittently on Windows
- Closed