mina-sshd icon indicating copy to clipboard operation
mina-sshd copied to clipboard

transfer rate limiting

Open leocoder0 opened this issue 3 years ago • 1 comments

Description

Does the sftp server implemented by ssh-sftp have a speed-limited function? If so, how should I limit the transmission rate for different users, such as upload rate and download rate. Is there a corresponding case for reference?

Motivation

In order to prevent excessive use of bandwidth, we will set the maximum transmission rate for different users.

Alternatives considered

No response

Additional context

No response

leocoder0 avatar Apr 11 '23 10:04 leocoder0

There is no built-in mechanism, but you could achieve this by registering a non-default SftpFileSystemAccessor and override the openFile method to return a file channel that you implement and enforces whatever transfer traffic shaping policy you need.

lgoldstein avatar Sep 18 '23 17:09 lgoldstein