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

   Thanks for this detailed bug report. Also occurs in a simple test against an 
Apache sshd server with an 8MB file. Unfortunately our tests only used 1MB 
files for testing, and with 1MB, the issue is not reproducible.
   
   Looks like that twin buffering in `SftpOutputStreamAsnyc` must not be done. 
It may lead to calling `read` on the input before the buffer has been written, 
and if the input is a stream using the same `SftpClient` (and thus the same SSH 
channel), it may also send requests to get more data at the same time.
   
   I'll have to think about this. Either we have to go back to a single buffer, 
or we find a way to somehow synchronize this better.


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