[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:
parent
5a5cd201b7
commit
eb60811594
|
@ -460,7 +460,7 @@ class SFTPClient (BaseSFTP):
|
||||||
fr = self.file(remotepath, 'wb')
|
fr = self.file(remotepath, 'wb')
|
||||||
size = 0
|
size = 0
|
||||||
while True:
|
while True:
|
||||||
data = fl.read(16384)
|
data = fl.read(32768)
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
break
|
break
|
||||||
fr.write(data)
|
fr.write(data)
|
||||||
|
@ -488,7 +488,7 @@ class SFTPClient (BaseSFTP):
|
||||||
fl = file(localpath, 'wb')
|
fl = file(localpath, 'wb')
|
||||||
size = 0
|
size = 0
|
||||||
while True:
|
while True:
|
||||||
data = fr.read(16384)
|
data = fr.read(32768)
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
break
|
break
|
||||||
fl.write(data)
|
fl.write(data)
|
||||||
|
|
Loading…
Reference in New Issue