Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1873 closed defect (fixed)

iOS application getting killed after pjsua fail to release a disconnected transport

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 ming)

Important: The proper fix for this ticket is available in ticket #1893, which belonged to release 2.5.

This is related to #1482 point 2 (spurious wakeups problem after TCP disconnection).

Scenario:

  1. Registration for account A is in progress, and DNS is in the process of resolving the hostname, hence TCP transport is not created yet and account transport (pjsua_acc.auto_rereg.reg_tp) is set to NULL.
  2. Transport eventually gets created, but account transport is not updated.
  3. Transport disconnection occurs, normally pjsua will release the disconnected transport from the account, however as transport pointer of account A is NULL, pjsua fails to detect and release it immediately.
    • Note that the transport stays not released/destroyed until a new registration by account A (using a new transport) is issued or the account is deleted.

Change History (4)

comment:1 Changed 9 years ago by nanang

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

In 5143:

Fixed #1873: Only reset account transport pointer after a successful unregistration.

comment:2 Changed 9 years ago by ming

  • Description modified (diff)

comment:3 Changed 9 years ago by ming

In 5188:

Fixed #1873: iOS application getting killed after pjsua fail to release a disconnected transport

comment:4 Changed 9 years ago by ming

  • Description modified (diff)
Note: See TracTickets for help on using tickets.