mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
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
This commit is contained in:
parent
0e06c1637b
commit
fa0216b294
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue