curl / Mailing Lists / curl-library / Single Mail


Re: curl_multi_timeout and curl_multi_wait

From: Daniel Stenberg <>
Date: Sun, 11 Jun 2017 17:49:28 +0200 (CEST)

On Sat, 10 Jun 2017, Mradula Nayak wrote:

> There is one thing I am not clear about. Does curl_multi_wait puts CPU to
> sleep while it is waiting? Or does it keep polling during the timeout?

libcurl uses poll() or select() for that, which allows the kernel to put the
CPU to sleep.

Received on 2017-06-11