Re: curl_multi_poll: a sister to curl_multi_wait() that waits more

2019-07-30 Thread Daniel Stenberg via curl-library
On Tue, 30 Jul 2019, Christopher Head via curl-library wrote: When I saw the sentence, “If no extra file descriptors are provided and libcurl has no file descriptor to offer to wait for, this function will return immediately,” in the documentation, I originally thought this meant if there are

Re: curl_multi_poll: a sister to curl_multi_wait() that waits more

2019-07-30 Thread Christopher Head via curl-library
On Mon, 29 Jul 2019 13:54:07 +0200 (CEST) Daniel Stenberg via curl-library wrote: > Repeatedly we see problems where using curl_multi_wait() is difficult > or just awkward because if it has no file descriptor to wait for > internally, it returns immediately and leaves it to the caller to wait >

Re: curl_multi_poll: a sister to curl_multi_wait() that waits more

2019-07-29 Thread Daniel Stenberg via curl-library
On Mon, 29 Jul 2019, m brandenberg via curl-library wrote: This function works identically to curl_multi_wait() - EXCEPT - for the case when there's nothing to wait for internally, as then this function will by itself wait for a "suitable" short time before it returns. So 'wait' polls and

Re: curl_multi_poll: a sister to curl_multi_wait() that waits more

2019-07-29 Thread m brandenberg via curl-library
On Mon, 29 Jul 2019, Daniel Stenberg via curl-library wrote: This function works identically to curl_multi_wait() - EXCEPT - for the case when there's nothing to wait for internally, as then this function will by itself wait for a "suitable" short time before it returns. So 'wait' polls and

curl_multi_poll: a sister to curl_multi_wait() that waits more

2019-07-29 Thread Daniel Stenberg via curl-library
Hi team, Very soon after we introduced curl_multi_wait() I realized it had an awkward behavior that makes it tricky to use at times. Today I wrote up an initial proposal for a drop-in function replacement that probably is more what application authors actually want and need - and some