pj_getaddrinfo() slow on Linux device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I see that pj_getaddrinfo() called from pj_gethostip() hits the 5 second timeout for some nameservers on a Linux-based device. The call to pj_getaddrinfo() is not able to resolve the local host IP address and defaults to pj_getdefaultipinterface(). I was wondering if I could disable the call to pj_getaddrinfo() by setting 'PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION' - I already see this set for macOS. Are there any pitfalls of setting this for Linux platform too?

Incidentally, pj_getaddrinfo() is able to resolve the ip address when using the same nameservers.
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux