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

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


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





More information about the Devel mailing list