[PATCH] Use getaddrinfo() with AI_CANONNAME flag to resolve canonical name in SSPI authentication code
joe at manyfish.co.uk
Fri Sep 2 10:01:29 EDT 2011
On Tue, Jul 12, 2011 at 12:29:18PM +0400, Ivan Zhakov wrote:
> On Tue, Jun 7, 2011 at 18:49, Ivan Zhakov <ivan at visualsvn.com> wrote:
> > Hi,
> > We found that neon can freeze for several seconds when trying to do
> > reverse lookup to resolve canonical name to build SPN name for SSPI
> > authentication, when reverse lookup is not configured on DNS. The
> > better way to resolve canonical hostname is to use getaddrinfo()
> > function with AI_CANNONNAME flag. The attached patch fixes this issue.
> > PS: getaddrinfo() is already available since Windows 2000.
> Ping? Any chance to get this patch reviewed and committed?
Hi Ivan, sorry for the slow reply.
I'd rather thread the AI_CANONNAME through the ne_addr_* code... I have
tried that in the trunk r1852 and r1853 - are you able to test that? (I
have not tested the changes to ne_sspi.c to compile/work)
More information about the neon