[sr-dev] git:3.1: rls(k): update_rlsubs() broken in two funtions

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 1 12:19:58 CEST 2011


Module: sip-router
Branch: 3.1
Commit: 44d1984ebf7a6ef23a2ae6a2a6e7577bb75a0f37
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=44d1984ebf7a6ef23a2ae6a2a6e7577bb75a0f37

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Apr  1 12:13:39 2011 +0200

rls(k): update_rlsubs() broken in two funtions

- deletion from hash table of expired subscriptions is done
separately now in remove_expired_rlsubs()
- should allow proper notification in case of un-SUBSCRIBE events,
first doing updated of rlsubs, then sending NOTIFY requests and then
deleting from hash table
- reported by Peter Dunkley
- added several safety checks about size of built attributes, used
  variables, trimmed whitespaces from attributes added in bodies to save
  some bytes on the network
(cherry picked from commit b571356226b35a4f971ef77e4a83cc503de97fd8)

---

 modules_k/rls/notify.c          |    8 +++-
 modules_k/rls/resource_notify.c |   30 ++++++++-----
 modules_k/rls/rls.c             |   10 +++-
 modules_k/rls/rls.h             |   21 ++++++---
 modules_k/rls/subscribe.c       |   92 +++++++++++++++++++++++++-------------
 5 files changed, 108 insertions(+), 53 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=44d1984ebf7a6ef23a2ae6a2a6e7577bb75a0f37



More information about the sr-dev mailing list