Просмотр исходного кода

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

Disable pipelined transfers for SFTP
Nashwan Azhari 7 лет назад
Родитель
Сommit
99f43e2fc0
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()