curl / Mailing Lists / curl-library / Single Mail


Re: multi_socket and epoll example

From: Daniel Stenberg via curl-library <>
Date: Wed, 8 Aug 2018 11:56:21 +0200 (CEST)

On Tue, 7 Aug 2018, James Read wrote:

>> As long as libcurl is built to use the threaded resolver (default) or the
>> c-ares backend, it will do name resolving in a non-blocking manner.
> I just did a standard install using the latest git clone.

Then it probably built with the threaded resolver. At the end of the configure
run it says which one it will build with (and the curl -V output subtly
reveals the info too).

> On another note. I've just tested ephiperfifo with a 100k domains.
> Throughput is below what I was expecting (hoping for). It started off at
> about 600KB/sec and then dropped to around 40KB/sec.

There are like a million factors that all work together and in this statement
you put them all together.

First, I think you should understand the API properly and make sure that's
used correctly. Then you should start small and get data from URLs that really
will give you high speed transfers and make sure the application works
correctly when using a small amount of transfers - perhaps a single one to
start with - and then add more when you've confirmed that.

Received on 2018-08-08