mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:53:32 +03:00
multi: more efficient pollfd count for poll
- do not use separate pollfds for sockets that have POLLIN+POLLOUT Closes #11792
This commit is contained in:
parent
331b89a319
commit
519b1cf97b
2 changed files with 45 additions and 71 deletions
|
|
@ -59,6 +59,9 @@ struct Curl_multi *Curl_multi_handle(int hashsize, int chashsize,
|
|||
/* set the bit for the given sock number to make the bitmap for readable */
|
||||
#define GETSOCK_READSOCK(x) (1 << (x))
|
||||
|
||||
/* mask for checking if read and/or write is set for index x */
|
||||
#define GETSOCK_MASK_RW(x) (GETSOCK_READSOCK(x)|GETSOCK_WRITESOCK(x))
|
||||
|
||||
#ifdef DEBUGBUILD
|
||||
/*
|
||||
* Curl_multi_dump is not a stable public function, this is only meant to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue