mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Improved sftp and I/O in general: set buffer size to 65536
This commit is contained in:
@@ -522,7 +522,7 @@ impl FileTransfer for SftpFileTransfer {
|
||||
mode,
|
||||
OpenType::File,
|
||||
) {
|
||||
Ok(file) => Ok(Box::new(BufWriter::with_capacity(8192, file))),
|
||||
Ok(file) => Ok(Box::new(BufWriter::with_capacity(65536, file))),
|
||||
Err(err) => Err(FileTransferError::new_ex(
|
||||
FileTransferErrorType::FileCreateDenied,
|
||||
format!("{}", err),
|
||||
|
||||
Reference in New Issue
Block a user