tomaswolf commented on PR #449:
URL: https://github.com/apache/mina-sshd/pull/449#issuecomment-1877520579

   > > The unit tests in StrictKexTest work with all transport back-ends (NIO2, 
Netty, and Mina).
   > 
   > On Linux/MacOS. Somehow not in CI on Windows. `StrictKexTest` consistently 
fails on Windows/Java 8, and is unstable with Java 11 or 17 on Windows. :-(
   
   The test failure on Windows was due to an unrelated bug that exists at least 
in the NIO2 transport back-end: when a session is terminated due to an 
exception, the SSH session layer sends a DISCONNECT message and is careful to 
close the ServerSession only once that message has been sent. But the 
underlying Nio2Session layer then closes itself immediately all the same. This 
gives a race -- sometimes, the write completes earlier, but sometimes it 
doesn't, and then the DISCONNECT message never goes out. Then the client 
doesn't get the expected disconnection reason code.
   
   That minor bug is to fixed in some follow-up change; I don't want to do it 
here in this PR. (Fixing it properly might not be trivial.) The connection is 
closed in either case, so I prefer to have less strict assertions in the test 
instead.
   
   This PR is ready for review.


-- 
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