Navigation


Changeset 933:04f590da5821 in freeDiameter


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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/CMakeLists.txt

    r871 r933  
    2525ENDIF (NOT DIAMID_IDNA_IGNORE)
    2626
    27 MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT)
     27# Disable expiration of connections with dynamically connected peers as per RFC 3539 ? (default is enabled)
     28# Note: if someone needs, we could also make the delay configurable here...
     29OPTION(DISABLE_PEER_EXPIRY "Disable RFC3539 Peers Connections Expiration after inactivity?" OFF)
     30
     31
     32MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT DISABLE_PEER_EXPIRY)
    2833
    2934########################
  • include/freeDiameter/freeDiameter-host.h.in

    r904 r933  
    5959#cmakedefine DIAMID_IDNA_IGNORE
    6060#cmakedefine DIAMID_IDNA_REJECT
     61#cmakedefine DISABLE_PEER_EXPIRY
    6162#cmakedefine GNUTLS_VERSION_210
    6263#cmakedefine GNUTLS_VERSION_300
  • 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.