Navigation


Changeset 924:877592751fee in freeDiameter for include


Ignore:
Timestamp:
Feb 15, 2013, 1:52:57 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
925:e5a09fab5ef3, 950:51c15f98a965
Phase:
public
Message:

Fix (tentative) for invalid handling of sessions fast creation/destruction as pointed by Yusuke Okura -- http://lists.freediameter.net/pipermail/help/2013-February/000584.html and http://lists.freediameter.net/pipermail/help/2013-February/000589.html -- Thank you very much

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r922 r924  
    18161816 *
    18171817 * RETURN VALUE:
    1818  *  0           : The session is created.
    1819  *  EINVAL      : A parameter is invalid.
    1820  *  EALREADY    : A session with the same name already exists (returned in *session)
     1818 *  0           : The session is created, the initial msg refcount is 1.
     1819 *  EINVAL      : A parameter is invalid.
     1820 *  EALREADY    : A session with the same name already exists (returned in *session), the msg refcount is increased.
    18211821 *  ENOMEM      : Not enough memory to complete the operation
    18221822 */
     
    25052505int fd_msg_sess_get(struct dictionary * dict, struct msg * msg, struct session ** session, int * isnew);
    25062506
     2507/* This one is used by the libfdcore, you should use fd_msg_new_session rather than fd_sess_new, when possible */
     2508int fd_msg_sess_set(struct msg * msg, struct session * session);
     2509
     2510
    25072511/***************************************/
    25082512/*   Manage AVP values                 */
Note: See TracChangeset for help on using the changeset viewer.