2
0
Эх сурвалжийг харах

Disable pipelined transfers for SFTP

Gabriel Adrian Samfira 7 жил өмнө
parent
commit
fcd008b0dd
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      coriolis/utils.py

+ 3 - 1
coriolis/utils.py

@@ -158,7 +158,9 @@ def read_ssh_file(ssh, remote_path):
 def write_ssh_file(ssh, remote_path, content):
     sftp = ssh.open_sftp()
     fd = sftp.open(remote_path, 'wb')
-    fd.set_pipelined(True)
+    # Enabling pipelined transfers here will make
+    # SFTP transfers much faster, but in combination
+    # with eventlet, it seems to cause some lock-ups
     fd.write(content)
     fd.close()