Commit a24bb091 authored by Chen Chenglong's avatar Chen Chenglong Committed by 老广

improve download speed for sftp (#174)

* Update interactive.py

* improve download speed for sftp
parent 970d6242
......@@ -295,6 +295,7 @@ class SFTPServer(paramiko.SFTPServerInterface):
try:
client, rpath = self.get_sftp_client_rpath(path)
f = client.open(rpath, mode, bufsize=4096)
f.prefetch()
obj = paramiko.SFTPHandle(flags)
obj.filename = rpath
obj.readfile = f
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment