mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:23:32 +03:00
pause: when changing pause state, update socket state
Especially unpausing a transfer might have to move the socket back to the "currently used sockets" hash to get monitored. Otherwise it would never get any more data and get stuck. Easily triggered with pausing using the multi_socket API. Reported-by: Philip Prindeville Bug: https://curl.haxx.se/mail/lib-2018-03/0048.html Fixes #2393 Closes #2391
This commit is contained in:
parent
9434194be8
commit
2404aa080e
3 changed files with 12 additions and 1 deletions
|
|
@ -2421,6 +2421,12 @@ static void singlesocket(struct Curl_multi *multi,
|
|||
data->numsocks = num;
|
||||
}
|
||||
|
||||
void Curl_updatesocket(struct Curl_easy *data)
|
||||
{
|
||||
singlesocket(data->multi, data);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Curl_multi_closed()
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue