From fa0216b294af4c7113a9040ca65eefc7fc18ac1c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 28 Feb 2020 23:55:05 +0100 Subject: pause: force-drain the transfer on unpause ... since the socket might not actually be readable anymore when for example the data is already buffered in the TLS layer. Fixes #4966 Reported-by: Anders Berg Closes #5000 --- lib/easy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/easy.c') diff --git a/lib/easy.c b/lib/easy.c index 454621076..1a6912748 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -1033,6 +1033,7 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int action) to have this handle checked soon */ if((newstate & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) != (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) { + data->state.drain++; Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */ if(data->multi) Curl_update_timer(data->multi); -- cgit v1.2.1