Moonergfp commented on issue #663:
URL: https://github.com/apache/mina-sshd/issues/663#issuecomment-2677336049

   > Thanks for reporting this. This race condition is ugly and, other than I 
had expected, not specific to this TCP/IP forwarding. The TcpipServerChannel 
does everything correctly. It connects to port B, and if the channel or session 
is closed, it also closes the `IoConnector` it uses to make that connection to 
B.
   > 
   > The problem is in the `IoConnector` and the way low-level `IoSession`s are 
created there. The race condition exists in all three implementations (NIO2, 
Mina, and Netty).
   > 
   > IoSessions are created and registered in the IoConnector, and when the 
IoConnector is closed, it also closes all registered sessions. But IoSessions 
are created asynchronously, and so it is possible that an IoSession is 
registered after the IoConnector has already been closed. When that happens, we 
end up with an IoSession that will probably remain around forever.
   
   So, in what way should I fix that issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to