[OpenSIPS-Devel] [OpenSIPS/opensips] 28d3de: Fixes bug where the pua db elements were deleted t...

Bogdan Andrei IANCU bogdan at opensips.org
Tue Apr 22 20:34:50 CEST 2014


  Branch: refs/heads/1.8
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 28d3de577c5afba53110d58100830d823dc14a57
      https://github.com/OpenSIPS/opensips/commit/28d3de577c5afba53110d58100830d823dc14a57
  Author: Damien Sandras <dsandras at beip.be>
  Date:   2013-11-15 (Fri, 15 Nov 2013)

  Changed paths:
    M modules/pua/pua.c

  Log Message:
  -----------
  Fixes bug where the pua db elements were deleted too early.

The problem is that the update_db function was deleting elements
10 seconds before they are expired and before the expire time could
have been extended by the same function.

This patch fixes the order of update and delete operations:
1) Update the expired elements (and other changes)
2) Delete expired elements after the possible update

This allows only deleting elements that are really expired.


  Commit: f09656c1bb54c2496ba6b024b60df4ef3e6b8413
      https://github.com/OpenSIPS/opensips/commit/f09656c1bb54c2496ba6b024b60df4ef3e6b8413
  Author: Bogdan Andrei IANCU <bogdan at opensips.org>
  Date:   2014-04-22 (Tue, 22 Apr 2014)

  Changed paths:
    M modules/pua/pua.c

  Log Message:
  -----------
  Merge pull request #130 from dsandras/ds-pua-dbupdate-fix

Fixes bug where the pua db elements were deleted too early.


Compare: https://github.com/OpenSIPS/opensips/compare/c37f31a7dd52...f09656c1bb54


More information about the Devel mailing list