Ticket #1246 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Use CFHost API for pj_getaddrinfo() on iPhone OS

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-1.10
Component: pjlib Version: trunk
Keywords: Cc:
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.

Change History

comment:1 Changed 8 years ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

(In [3543]) Fixed #1246: Use CFHost for pj_getaddrinfo() on iOS

  • Replace the fix for ticket #1104 with this fix
  • Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function

Re-run configure-iphone to use this fix automatically.

Note: See TracTickets for help on using tickets.