From 59c44c76dee3123ea89f73108a8788ec06cc126a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 21 Mar 2022 17:39:49 +0100 Subject: [PATCH] libssh: unstick SFTP transfers when done event-based Test 604 and 606 (at least). Closes #8490 --- lib/vssh/libssh.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.47.3