Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialog: Fix some locking corner-cases
* Re-INVITE pinging: synchronize writers and readers for the dlg->legs->adv_contact string, as well as the entire dlg->legs struct. Example subtle race conditions: 1. setting $DLG_timeout after t_relay() (read op) vs. concurrently processing a 200 OK (write op) 2. calling MI "dlg_push_var" after t_relay() (read op) vs. concurrently processing a 200 OK (write op) 3. in parallel forking, dlg_onreq_out() (read op) vs. concurrently processing 200 OK for prev. branch (write op) * DB load: to be 100% accurate, do not use ref_unsafe(), as we don't hold the lock -- use the safe version instead!
- Loading branch information
1 parent
4e2f1b4
commit 0dc9681
Showing
3 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters