You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using erldns 2.2.0 as a library (great library, by the way!)
I happened to take a look into erldns_zone_cache:put_zone/1 and, if the cache works the way I superficially understood it to, there appears to be race condition between invoking delete_zone_records/1 and put_zone/2.
Did I understood it correctly? Is there a tiny window where lookups might fail every time put_zone/1 is used?
If so, would you be open to changing the order between calls? I'd be available for a PR.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I've been using
erldns
2.2.0 as a library (great library, by the way!)I happened to take a look into
erldns_zone_cache:put_zone/1
and, if the cache works the way I superficially understood it to, there appears to be race condition between invokingdelete_zone_records/1
andput_zone/2
.erldns/src/erldns_zone_cache.erl
Lines 277 to 283 in 97d2b8e
Did I understood it correctly? Is there a tiny window where lookups might fail every time
put_zone/1
is used?If so, would you be open to changing the order between calls? I'd be available for a PR.
Thanks!
The text was updated successfully, but these errors were encountered: