chunkSize top-level constant
int
const chunkSize
The amount of data to send in a single SFTP packet.
From the SFTP spec it's safe to send up to 32KB of data in a single packet. To strike a balance between capability and performance, we choose 16KB.
Implementation
const chunkSize = 16 * 1024;