forked from apache/mina-sshd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-403: Use 4-byte SFTP file handles by default
Change the default size for SFTP file handles to 4 bytes, and change the implementation such that it produces collision-free 4-byte handles. The algorithm for longer handles is left unchanged. Using smaller SFTP file handles wastes less space in the SSH packets, which can thus be used to send actual data. OpenSSH also uses 4-byte SFTP file handles; using the same size also helps avoid strange bugs in SFTP clients that might not always handle larger file handles correctly. Bug: apache#403
- Loading branch information
Showing
4 changed files
with
139 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters