Details
Description
When using NioDatagramAcceptor with multiple binded local addresses the IoSessionRecycler is not working as expected.
If the acceptor has been prefilled with two sessions:
remoteaddr=192.168.1.10:2001 localaddr=192.168.1.20:1000
remoteaddr=192.168.1.10:2001 localaddr=192.168.1.20:1001
so with same remote address but different local address, when the recycle method of IoSessionRecycler interface is called only remote address is passed. The recycler returns the same IoSession for incoming datagrams on two different local addresses of the same acceptor.
The IoSessionRecycler should have the local address parameter also in order to find the correct IoSession.
Attachments
Issue Links
- is a clone of
-
DIRMINA-1172 Multiple DatagramAcceptors and the creation of a session object
- Resolved