[reSIProcate] DnsUtil.cxx
Mike Hubbard
mike.hubbard at ivr.com
Mon Aug 6 11:20:48 CDT 2012
Hi Scott,
The delay occurs every time I start the application. It is the
getaddrinfo() API call that is causing the delay.
Mike
From: slgodin at gmail.com [mailto:slgodin at gmail.com] On Behalf Of Scott Godin
Sent: Monday, August 06, 2012 9:17 AM
To: Mike Hubbard
Cc: resiprocate-devel at resiprocate.org
Subject: Re: [reSIProcate] DnsUtil.cxx
Hi Mike,
I have not noticed this problem on my systems (Windows 7 with IPv6 enabled).
I have some applications using resip statically and some using it in a DLL.
Does the delay only happen when the machine is starting up, or everytime you
start your application? Are you able to put a break point in
DnsUtil::getLocalHostName to see which API is causing the delay? Note:
getLocalHostName also calls initNetwork - which calls WSAStartup.
Scott
On Sat, Aug 4, 2012 at 1:38 PM, Mike Hubbard <mike.hubbard at ivr.com> wrote:
Hello,
I noticed in the most recent version of reciprocate that the routine
getLocalHostName() in the file DnsUtil.cxx has changed. This routine seems
to be called by Helper.cxx in the following line of code:
static Data localhostname = DnsUtil::getLocalHostName();
This occurs when my .dll is loaded even before the first line of the main()
routine is executed in the .exe. On certain machines (mostly Windows 7 with
IPv6 enabled) the new call to getaddrinfo() is taking over 2 minutes to
return. Then my code breaks on the first line of the main() function.
Is anyone else experiencing a similar problem? If so, do you have any
advice?
Thanks in advance,
Mike
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel at resiprocate.org
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20120806/6a22433b/attachment.htm>
More information about the resiprocate-devel
mailing list