Explorar o código

Merge pull request #14 from gabriel-samfira/disable-pipelined-transfers

Disable pipelined transfers for SFTP
Nashwan Azhari %!s(int64=7) %!d(string=hai) anos
pai
achega
99f43e2fc0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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()