From c294d0abc5b62b8068af391576be87b821d2ff8b Mon Sep 17 00:00:00 2001 From: sunriseL <540729251@qq.com> Date: Mon, 18 Aug 2025 19:34:43 +0800 Subject: [PATCH] libssh2: fix sftp_statemachine busyloop when *block=true Closes #18311 --- lib/vssh/libssh2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index f6985ed251..ea76482394 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -3073,7 +3073,7 @@ static CURLcode ssh_statemachine(struct Curl_easy *data, break; } - } while(!result && (sshc->state != SSH_STOP)); + } while(!result && (sshc->state != SSH_STOP) && !*block); if(result == CURLE_AGAIN) { /* we would block, we need to wait for the socket to be ready (in the -- 2.47.3