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

   > When Broken pipe occurs, it actually means that the data has already been 
transmitted.
   
   Why? Broken pipe just means the other end went away.
   
   The stack trace shows a broken pipe when trying to send a channel window 
adjustment message. Whether there is other data ready to be read in local 
network buffers and whether it can still be read and used is totally unclear, 
and depending on what that data is, it might cause more packets to be written 
(such as triggering a new key exchange, or causing another window update, or a 
channel close), which the would also fail since the pipe is already broken. 
Even if there is no other data to be read, we have no way of knowing whether 
the data we just got and processed was the last bit that should be transmitted 
over that channel, so we cannot just close the channel gracefully. Leaving the 
session open is not an option since the underlying network connection is gone.
   
   Fix the peer to not drop the connection prematurely, and to close the 
channel and session properly.


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