tomaswolf commented on issue #420:
URL: https://github.com/apache/mina-sshd/issues/420#issuecomment-1751387982

   Thanks a lot for this code. I've rewritten this as a single JUnit test, (see 
[PortForwardingHttpTest.java.txt](https://github.com/apache/mina-sshd/files/12835353/PortForwardingHttpTest.java.txt))
 and I see the following things:
   
   1. The exception occurs sporadically, whether or not the HTTP server 
properly closes its socket.
   2. The exception is logged when the SSH server tries to shut down its 
connection to the HTTP server.
   3. It is harmless.
   4. The logging level should probably not be INFO but DEBUG or maybe even 
TRACE.
   
   I suggest to fix (4) by checking in `Nio2Session.doCloseGracefully()` 
whether the socket is still open before calling `socket.shutdownOutput();`, and 
using DEBUG logging instead of INFO logging.
   
   


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