From: Daniel Stenberg Date: Mon, 21 Mar 2022 16:39:49 +0000 (+0100) Subject: libssh: unstick SFTP transfers when done event-based X-Git-Tag: curl-7_83_0~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59c44c76dee3123ea89f73108a8788ec06cc126a;p=thirdparty%2Fcurl.git libssh: unstick SFTP transfers when done event-based Test 604 and 606 (at least). Closes #8490 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 957b938fc8..ebe04a5f65 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -2063,6 +2063,9 @@ static int myssh_getsock(struct Curl_easy *data, if(conn->waitfor & KEEP_SEND) bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); + if(!conn->waitfor) + bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); + return bitmap; }