diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-03-21 17:39:49 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-03-21 17:41:20 +0100 |
commit | 59c44c76dee3123ea89f73108a8788ec06cc126a (patch) | |
tree | c0eec6270d6e270bafb17faeaacc24f9a819e008 /lib/vssh | |
parent | 5bb4d3ec0667453005512df87832d8dbd85ce417 (diff) | |
download | curl-59c44c76dee3123ea89f73108a8788ec06cc126a.tar.gz |
libssh: unstick SFTP transfers when done event-based
Test 604 and 606 (at least).
Closes #8490
Diffstat (limited to 'lib/vssh')
-rw-r--r-- | lib/vssh/libssh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 957b938fc..ebe04a5f6 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; } |