[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-48]

can use up to 32k buffers here
This commit is contained in:
Robey Pointer 2005-08-03 06:57:30 +00:00
parent 5a5cd201b7
commit eb60811594
1 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ class SFTPClient (BaseSFTP):
fr = self.file(remotepath, 'wb')
size = 0
while True:
data = fl.read(16384)
data = fl.read(32768)
if len(data) == 0:
break
fr.write(data)
@ -488,7 +488,7 @@ class SFTPClient (BaseSFTP):
fl = file(localpath, 'wb')
size = 0
while True:
data = fr.read(16384)
data = fr.read(32768)
if len(data) == 0:
break
fl.write(data)