Navigation


Changeset 1010:357c2f892d24 in freeDiameter for include


Ignore:
Timestamp:
Mar 26, 2013, 12:39:32 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Implement a new counter on pending answers to send back to a peer.
Function fd_peer_get_load_pending updated to retrieve this counter as well.
When a peer has answers pending, the connection is not immediately teared down
upon DPR/DPA exchange, but a GRACE_TIMEOUT delay (default 1 sec) is granted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1008 r1010  
    390390 * PARAMETERS:
    391391 *  peer        : The peer which load to read
     392 *  to_receive  : (out) number of requests sent to this peer without matching answer yet.
     393 *  to_send     : (out) number of requests received from this peer and not yet answered.
    392394 *
    393395 * DESCRIPTION:
     
    400402 * !0  : An error occurred
    401403 */
    402 int fd_peer_get_load_pending(struct peer_hdr *peer, int * load);
     404int fd_peer_get_load_pending(struct peer_hdr *peer, long * to_receive, long * to_send);
    403405
    404406/*
Note: See TracChangeset for help on using the changeset viewer.