浏览代码

Bug 1957: SFTP uploads are slow

https://winscp.net/tracker/1957

Source commit: 67298b5117e578a1b2bb729a9de5c10ab107f70e
Martin Prikryl 4 年之前
父节点
当前提交
7ed4e1b411
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      source/putty/ssh.c

+ 4 - 0
source/putty/ssh.c

@@ -1006,8 +1006,12 @@ static size_t ssh_sendbuffer(Backend *be)
 
     backlog = ssh_stdin_backlog(ssh->cl);
 
+    #ifndef WINSCP
+    // This throttles WinSCP unnecessarily, as it uses its own throttling mechanism.
+    // This value is used only by WinSCP, never directly by PuTTY code.
     if (ssh->base_layer)
         backlog += ssh_ppl_queued_data_size(ssh->base_layer);
+    #endif
 
     /*
      * If the SSH socket itself has backed up, add the total backup