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

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


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

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

---

 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=b571356226b35a4f971ef77e4a83cc503de97fd8



More information about the sr-dev mailing list