mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
curl_multi_wait: Add parameter to return number of active sockets
Minor change to recently introduced function. BC breaking, but since curl_multi_wait() doesn't exist in any releases that should be fine.
This commit is contained in:
parent
9b25b00fa3
commit
b78944146a
4 changed files with 19 additions and 5 deletions
|
|
@ -944,7 +944,8 @@ CURLMcode curl_multi_fdset(CURLM *multi_handle,
|
|||
CURLMcode curl_multi_wait(CURLM *multi_handle,
|
||||
struct curl_waitfd extra_fds[],
|
||||
unsigned int extra_nfds,
|
||||
int timeout_ms)
|
||||
int timeout_ms,
|
||||
int *ret)
|
||||
{
|
||||
struct Curl_multi *multi=(struct Curl_multi *)multi_handle;
|
||||
struct Curl_one_easy *easy;
|
||||
|
|
@ -1023,8 +1024,10 @@ CURLMcode curl_multi_wait(CURLM *multi_handle,
|
|||
}
|
||||
|
||||
/* wait... */
|
||||
Curl_poll(ufds, nfds, timeout_ms);
|
||||
i = Curl_poll(ufds, nfds, timeout_ms);
|
||||
free(ufds);
|
||||
if(ret)
|
||||
*ret = i;
|
||||
return CURLM_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue