Changes between Initial Version and Version 2 of Ticket #1706


Ignore:
Timestamp:
Mar 21, 2017 1:44:40 AM (7 years ago)
Author:
ming
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1706

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #1706 – Description

    initial v2  
    11Fix race condition which may cause the transaction to be destroyed before we have chance to lock the group lock. 
     2 
     3{{{ 
     410:19:57.797 (52608) [PJ:5] -  tsx0x6d9db88c        pjsua  .State changed from Terminated to Destroyed, event=TIMER 
     510:19:57.797 (44440) [PJ:4] -   pjsua_core.c        media  .RX <-- 1329 bytes Response msg 200/INVITE/cseq=26892 (rdata0x69dcc1cc) from TCP 216.115.27.170:5090: 
     610:19:57.798 (44440) [PJ:5] -  tsx0x6d9db88c        media  .Incoming Response msg 200/INVITE/cseq=26892 (rdata0x69dcc1cc) in state Destroyed 
     710:19:57.818 (52608) [PJ:5] -  tsx0x6d9db88c        pjsua  ..Transaction destroyed! 
     8}}} 
     9 
     10The problem seems to happen because the transaction lock is destroyed after the first line, and then the media thread tries to lock it in the retransmitted response.