These are chat archives for fanout/pushpin

20th
Jun 2017
Justin Karneges
@jkarneges
Jun 20 2017 00:36
you could install zurl from source, the develop branch
but I don't think it will help. the recent fix was about connection re-use. basically libcurl keeps using existing persistent connections even if dns records change
in your case it doesn't appear that connections are being reused
well actually it could still be helpful for you in case ELB might change IPs without disconnecting clients. but that's a separate issue from what the logs show today
Francis Eytan Dortort
@dortort
Jun 20 2017 01:11
What would solve my case then? curl's DNS timeout param (https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html)?
Justin Karneges
@jkarneges
Jun 20 2017 01:40
zurl bypasses curl's dns resolution, so curl's timeout isn't used. essentially a cache structure is created per request containing the 1 domain needed. this is what is happening in the log line "Added xxx to DNS cache"
zurl uses the jdns library for resolving, which has an in-memory cache
the latest zurl now includes jdns debug output when running with verbose
so you can see when jdns actually attempts a resolve and when it expires cached items
there isn't a way to disable the cache though
Francis Eytan Dortort
@dortort
Jun 20 2017 02:30
Is it possible to set shorter expiries?
Justin Karneges
@jkarneges
Jun 20 2017 02:39
nope. but, if a process restart didn't fix the problem then I think the issue is outside of pushpin/zurl