switch to my pkg/sftp branch and enable the request-server allocator

This way we have performance comparable to OpenSSH if the cipher
isn't the bottleneck
This commit is contained in:
Nicola Murino
2020-04-10 23:35:57 +02:00
parent b1c7317cf6
commit 5a5912ea66
3 changed files with 4 additions and 3 deletions

View File

@@ -427,7 +427,7 @@ func (c Configuration) handleSftpConnection(channel ssh.Channel, connection Conn
handler := c.createHandler(connection)
// Create the server instance for the channel using the handler we created above.
server := sftp.NewRequestServer(channel, handler)
server := sftp.NewRequestServer(channel, handler, sftp.WithRSAllocator())
if err := server.Serve(); err == io.EOF {
connection.Log(logger.LevelDebug, logSender, "connection closed, sending exit status")