|
From: SourceForge.net <no...@so...> - 2012-11-12 07:34:34
|
Bugs item #3586305, was opened at 2012-11-11 23:34 Message generated for change (Tracker Item Submitted) made by ktrushin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=461322&aid=3586305&group_id=50884 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: libevent-dns Group: For 2.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Konstantin (ktrushin) Assigned to: Nobody/Anonymous (nobody) Summary: evdns_base_load_hosts doesn't removes outdated addresses Initial Comment: I use hostfile to store some host address and use evdns_base_load_hosts to provide information about this host to libevent. If I change host address in the file and try to notify libevent about new address by calling evdns_base_load_hosts for the second time then evdns_getaddrinfo wrongly returns both addresses: old and new. But it should return only new one, shouldn't it? Reproduction (see attached source code): In the attached program I firstly write address 10.0.0.1 for host 'my_host' to 'my_hostfile' and everything is ok. Then I replace address to 10.0.0.2 and load hostfile again. After host file reloading evdns_getaddrinfo returns both addresses: 10.0.0.1 and 10.0.0.2, but should return only 10.0.0.2. Output: my_host -> 10.0.0.1 [request for my_host returned immediately] my_host -> 10.0.0.1 -> 10.0.0.2 [request for my_host returned immediately] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=461322&aid=3586305&group_id=50884 |