[OpenSIPS-Devel] [OpenSIPS/opensips] 59417a: event_flatstore: improve handling of multiple subs...

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 59417a9350493efc99b6e3e496ac05b861a8cb5e
      https://github.com/OpenSIPS/opensips/commit/59417a9350493efc99b6e3e496ac05b861a8cb5e
  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