pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.49k stars 379 forks source link

Add WithMaxTxPacket server option #584

Closed peterverraedt closed 2 months ago

peterverraedt commented 2 months ago

Add the WithMaxTxPacket and WithRSMaxTxPacket server options to increase the maximum tx packet size to a value above 32K. This allows to send bigger chunks of data to the client as response to a read request. As the client specifies the wanted length, it should be safe to increase the server maximum value.

This in particular allows the implemented Client with the MaxPacketUnchecked option to retrieve data in larger chunks.