[reSIProcate] DnsUtil.cxx

Scott Godin sgodin at sipspectrum.com
Mon Aug 6 11:17:06 CDT 2012


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/003ac7a6/attachment.htm>


More information about the resiprocate-devel mailing list