Navigation


Changeset 933:04f590da5821 in freeDiameter for libfdcore


Ignore:
Timestamp:
Mar 7, 2013, 12:39:07 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
934:977a5375543c, 961:d95cd3ca9e8d
Phase:
public
Message:

Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/peers.c

    r928 r933  
    515515                peer->p_flags.pf_delete = 1;
    516516               
     517#ifndef DISABLE_PEER_EXPIRY
    517518                /* Set this peer to expire on inactivity */
    518519                peer->p_hdr.info.config.pic_flags.exp   = PI_EXP_INACTIVE;
    519520                peer->p_hdr.info.config.pic_lft         = 3600; /* 1 hour without any message
    520521                -- RFC3539 states that this must not be inferior to BRINGDOWN_INTERVAL = 5 minutes */
     522               
    521523                CHECK_FCT_DO( ret = fd_p_expi_update( peer ), goto out );
    522 
     524#endif /* DISABLE_PEER_EXPIRY */
    523525               
    524526                /* Insert the new peer in the list (the PSM will take care of setting the expiry after validation) */
Note: See TracChangeset for help on using the changeset viewer.