[OpenSIPS-Devel] [OpenSIPS/opensips] 38052e: event_flatstore: improve handling of multiple subs...

Vlad Pătrașcu noreply at github.com
Mon Jan 20 11:20:02 EST 2020


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 38052e0fc4e72f7e74a68aa1686a1441b0e7db0f
      https://github.com/OpenSIPS/opensips/commit/38052e0fc4e72f7e74a68aa1686a1441b0e7db0f
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2020-01-20 (Mon, 20 Jan 2020)

  Changed paths:
    M modules/event_flatstore/event_flatstore.c
    M modules/event_flatstore/event_flatstore.h

  Log Message:
  -----------
  event_flatstore: improve handling of multiple subscriptions for the same file

Use the same internal shm struct corresponding to a file for each evi
subscription for that file. This fixes an issue with the 'evi_flat_rotate' MI
command not properly "rotating" multiple subscriptions to the new file. Besides,
a file is now opened only once regardless of how many subscribtions there are
for the same file.
Also, do not reuse an old 'evi_reply_sock' structure for a new subscription for
the same file (if the file corresponding to an old subscription was not yet
closed by all processes). This led to incorrect expire times for new
subscriptions.

Fixes #1933

(cherry picked from commit a2f4f80fdf34ec18eb1b6499d512609085115e72)





More information about the Devel mailing list