curl-library
Re: Clear connection cache libcurl 7.44
Date: Thu, 7 Jul 2016 08:41:21 +0000 (UTC)
On Wednesday, July 6, 2016 11:12 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
On Tue, 5 Jul 2016, risto via curl-library wrote:
> I've got a situation where connection cache is kept through internet
> connection change (Wifi -> 3G for example). After network change cURL will
> try to reuse the connection from cache and will fail and open a new
> connection. The problem is that it takes ~20 seconds to understand that the
> connection was dead. Are there any ways to overcome this?
As Ray explained already, we don't offer any way to flush or reset the
connection pool today. What would your suggested approach be if you got to
wish for how it would work?
-- / daniel.haxx.se Currently I monitor the network interface change myself. So I know exactly when network has changed and when the whole connection cache becomes invalid. For time critical requests reusing connections will give a big performance gain, however having long timeouts after connectivity change makes it unusable. If I could wish I'd like to keep the multi interface and non time critical requests in flight and have the option to manually clean unused connections from the cache. Risto
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-07