RE: proposed API breaks with async DNS

From: Murray S. Kucherawy <msk_at_cloudmark.com>
Date: Tue, 3 Nov 2009 00:19:57 -0800

> -----Original Message-----
> From: opendkim-dev-bounce_at_lists.opendkim.org [mailto:opendkim-dev-
> bounce_at_lists.opendkim.org] On Behalf Of Daniel Black
> Sent: Saturday, October 31, 2009 5:49 PM
> To: opendkim-users_at_lists.opendkim.org; opendkim-dev_at_lists.opendkim.org
> Subject: Re: proposed API breaks with async DNS
>
> #7 dkim_geterror
>
> This interface fetches the last error. With async operations going on
> this
> cannot reliably fetch the last error that the application expects.
>
> Can the be replaced with a callback registration that gets called when
> there
> is an error?
>
> DKIM_STAT dkim_set_error_callback
> DKIM_LIB *libopendkim,
> DKIM_CBSTAT (*errorfunc)(DKIM *dkim, char *format, va_list ap)
> );

Possibly. Might it be easier to let the caller query for the current state of an active DNS query, which might return an error code or string?

Not saying which is better, just throwing out alternatives.
Received on Tue Nov 03 2009 - 08:20:05 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:19:08 PST