[OpenSER-Devel] SF.net SVN: openser: [4191] branches/1.3/modules/tm/t_reply.c

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu May 15 12:59:35 CEST 2008


Revision: 4191
          http://openser.svn.sourceforge.net/openser/?rev=4191&view=rev
Author:   bogdan_iancu
Date:     2008-05-15 03:59:33 -0700 (Thu, 15 May 2008)

Log Message:
-----------
backport from trunk (rev #4190):

- fixed race condition that may lead to deadlock on the transaction lock. As the reply route (t_on_reply()) stored in transaction may be changed in reply route br the current process or any other process, to avoid race conditions, it is better to make a local copy of the reply route number to be sure it will not be changed.
The deadlock can appear as the reply route number is used in several conditions to determine id locking is required. But as this value may be changed (by current or other process), it may lead to multiple lockings with no unlock -> deadlock.

NOTE: this might happen only if onreply_avp_mode is turned on.

Revision Links:
--------------
    http://openser.svn.sourceforge.net/openser/?rev=4190&view=rev

Modified Paths:
--------------
    branches/1.3/modules/tm/t_reply.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list