Ticket #1246 (closed defect: fixed)
Use CFHost API for pj_getaddrinfo() on iPhone OS
|Reported by:||ming||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
On iPhone OS, getaddrinfo() is sometimes unable to resolve local hostname returned by gethostname(), causing delay around 2-5 sec during the initialization process.
Previous fix (see ticket #1104) tried to append ".local" for the value returned by gethostname(), however there are cases when the hostname has a "-2" suffix such as "hostname-2.local" which causes this fix ineffective.