#1865 closed enhancement (fixed)
Main thread blocked by NAT type detection in library start — at Version 2
Reported by: | nanang | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.4.5 |
Component: | pjsua-lib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description (last modified by nanang)
Currently pjsua_start() will automatically start NAT type detection, it may block the application UI/main thread (the thread calling pjsua_start(), usually it is the UI/main thread), when the configured STUN server is down.
So, let's just perform NAT type detection only after STUN server resolution is succeeded. Also, make the library starting NAT type detection only when pjsua_config.nat_type_in_sdp is set to non-zero.
Change History (2)
comment:1 Changed 9 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 9 years ago by nanang
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
In 5127: