curl_multi_fdset: include the shutdown connections in the set

They were previously missing.

Follow-up from c9b95c0bb3

Fixes #15156
Reported-by: Christopher Dannemiller
Closes #16049
This commit is contained in:
Daniel Stenberg 2025-01-19 11:16:56 +01:00
parent c80715169c
commit 7c2b325004
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 58 additions and 11 deletions

View file

@ -488,7 +488,7 @@ CURLcode Curl_pollfds_add_ps(struct curl_pollfds *cpfds,
return CURLE_OK;
}
void Curl_waitfds_init(struct curl_waitfds *cwfds,
void Curl_waitfds_init(struct Curl_waitfds *cwfds,
struct curl_waitfd *static_wfds,
unsigned int static_count)
{
@ -499,7 +499,7 @@ void Curl_waitfds_init(struct curl_waitfds *cwfds,
cwfds->count = static_count;
}
static unsigned int cwfds_add_sock(struct curl_waitfds *cwfds,
static unsigned int cwfds_add_sock(struct Curl_waitfds *cwfds,
curl_socket_t sock, short events)
{
int i;
@ -524,7 +524,7 @@ static unsigned int cwfds_add_sock(struct curl_waitfds *cwfds,
return 1;
}
unsigned int Curl_waitfds_add_ps(struct curl_waitfds *cwfds,
unsigned int Curl_waitfds_add_ps(struct Curl_waitfds *cwfds,
struct easy_pollset *ps)
{
size_t i;