curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multiple DNS resolution threads are spawned for same host/port for a multi-handle

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 23 Mar 2017 10:50:41 +0100 (CET)

On Wed, 22 Mar 2017, Daniel Stenberg wrote:

> If a name resolve has been initiated for name NN and a second easy handle
> wants to resolve that name as well, make it wait for the first resolve to
> end up in the cache instead of doing a second separate resolve.

It struck me that we could also consider redoing the threaded solution
somewhat more and perhaps have a thread-pool with N threads for name resolves
and they could stay alive during the multi handle's entire life time so that
we don't have to start/kill threads to the extent we do now and we could get
away with less threads than number of simultaneous easy handles.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-23