[OpenSIPS-Devel] [OpenSIPS/opensips] a7b287: SIP forking engine: Fix async-related issues

Liviu Chircu liviu at opensips.org
Tue Feb 23 15:53:51 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a7b287f5f566b87017a5bc7b3e68ac2fdef5b024
      https://github.com/OpenSIPS/opensips/commit/a7b287f5f566b87017a5bc7b3e68ac2fdef5b024
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2016-02-23 (Tue, 23 Feb 2016)

  Changed paths:
    M context.h
    M dset.c
    M dset.h
    M main.c
    M pvar.c
    M serialize.c

  Log Message:
  -----------
  SIP forking engine: Fix async-related issues

Previously (on OpenSIPS...), doing _any_ async operation at script level
after a destination set had been built (by lookup(), append_branch(), etc)
would have lead to unpredictable results.

This patch addresses the problem by moving the destination set storage
into the current processing context (from static mem to pkg mem).

Impact on memory usage at worst (12 branches for each request) is
an extra 30 MB of PKG memory per every 1000 cps.




More information about the Devel mailing list