tomaswolf commented on issue #584: URL: https://github.com/apache/mina-sshd/issues/584#issuecomment-2298293647
So your server is like an SFTP proxy (it doesn't use the local file system, but connects again to some other server and forwards stuff). Basically you have ``` SFTP Client ---> SFTP Server A ---> SFTP Client (on A) ---> SFTP server "targetIP" ``` I'm aware of the performance problems with this. SFTP is not well suited for such kind of proxying; you're probably better off forwarding SFTP requests directly. (Basically, don't use a filesystem but a special purpose SftpSubsystem that forwards requests directly, without ever going to the filesystem. The filesystem is just an awkward detour for such a use case.) And no, the "same processing as in SftpOutputStreamAsync" won't help. The server A only sees a series of write requests; it doesn't know that these writes are contiguous or even in sequence. I do wonder about your claim that it was "1-2 times slower than OpenSSH". How do you do this kind of SFTP proxying with OpenSSH on server A? It _is_ 1-2 times slower than uploading the file directly to the "targetIP" server, whether that targetIP server runs OpenSSH or Apache MINA sshd. -- 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