libssh: tell it to use SFTP non-blocking

Reported-by: Andreas Huebner
Fixes #11020
Closes #11039
This commit is contained in:
Daniel Stenberg 2023-04-27 11:17:26 +02:00
parent de4b0164f2
commit ff67da58c4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;