curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

read() call in timer_cb

From: James Read via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 8 Jun 2020 19:29:26 +0100

I am trying to understand the function timer_cb in
https://curl.haxx.se/libcurl/c/ephiperfifo.html

This is because my web crawler uses this function and the read() call seems
to be causing problems with my web crawler.

What is the read() call for?

It has been suggested to me elsewhere that I could use select instead. Is
that right?

What would the behaviour of the program be if the read call was simply
taken out? It's return value isn't used later in the function.

James Read

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-08