]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: tell it to use SFTP non-blocking
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Apr 2023 09:17:26 +0000 (11:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Apr 2023 15:59:56 +0000 (17:59 +0200)
Reported-by: Andreas Huebner
Fixes #11020
Closes #11039

lib/vssh/libssh.c

index d60edaa303642bf6d6f88e18c8f95d732f3436bc..7ebe61321419f35ee92992df9ec7e84e1cdf9795 100644 (file)
@@ -1597,7 +1597,7 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block)
         MOVE_TO_SFTP_CLOSE_STATE();
         break;
       }
-
+      sftp_file_set_nonblocking(sshc->sftp_file);
       state(data, SSH_SFTP_DOWNLOAD_STAT);
       break;