Opened 13 years ago

Last modified 13 years ago

#1229 closed defect

Bug in STUN resolver causes delay for 4 seconds if packet is lost. Also add other enhancements to the resolver (thanks Guy Zelkha for the report) — at Version 1

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.10
Component: pjlib-util Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

Bug fixes and enhancements to the simple STUN resolver (in PJLIB-UTIL, not PJNATH)

Bug:

  1. Bug: if UDP packet is lost, the resolver will wait until all retransmissions are done, which means 4 seconds delay.

Enhancements:

  1. Allow caller to specify only 1 STUN server, for faster result.
  2. If both servers point to the same address, only one will be used.
  3. Decrease retransmission delay from 1000 ms to 500 ms for more responsive result.
  4. Reduce memory consumption (from 1024 to 400 bytes).

Change History (1)

comment:1 Changed 13 years ago by bennylp

  • Description modified (diff)
  • Summary changed from Delay for up to four (4) seconds when using STUN on certain iPhone systems (thanks Guy Zelkha for the report) to Bug in STUN resolver causes delay for 4 seconds if packet is lost. Also add other enhancements to the resolver (thanks Guy Zelkha for the report)
Note: See TracTickets for help on using tickets.