On Thu, Sep 1, 2011 at 4:57 AM, Leonid Evdokimov <[email protected]> wrote:
> RFC 2308 says a lot about negative answer caching.
>
> Here is patch, that discloses TTL of negative answer (if possible) to
> the library user.
>
Hi, Leonid! One concern:
When you say
+ if ((flags & 0x020f) && (flags & 0x020f) != DNS_ERR_NOTEXIST) {
+ /* there was an error and it's not NXDOMAIN */
I don't see how (flags & 0x020f) != DNS_ERR_NOTEXIST could ever be
false. DNS_ERR_NOTEXIST is 3, and (flags & 0x020f) is either 0x020f
or 0.
Am I missing something, or did you mean to check something else here?
yrs,
--
Nick
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users in the body.