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

   AFAIK dropbear does not have SFTP, so some external SFTP is used. Either 
OpenSSH, or some other implementation. Do you have more information on that 
server?
   
   Since it occurs apparently only with that particular server my first guess 
would be that this is a server problem. Though it is not impossible that it 
might be some bug in Apache MINA SSHD that is triggered only in very specific 
circumstances that just happen to occur only with this server...
   
   Tweaking parameters or the buffer size should not be necessary; looks to me 
that this tweaking just happens to avoid the precise circumstances that trigger 
this bug, wherever it might be, in your case.
   
   Absent a reproducer that we could live debug, this would need a full trace 
log, plus information about the file content (at what offsets exactly do 
duplications occur? How long are the duplications? Expected/actual file size?) 
The trace log should have information about all blocks received, and their 
offsets and lengths. But that log might be huge.
   
   From code inspection I see only one possibility for something like this to 
occur: if the server returns _more_ data than the client requested for a chunk. 
But that should never happen; such a server would violate the SFTP protocol.


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