Navigation


Changeset 36:1498b3c7304c in freeDiameter for freeDiameter/p_expiry.c


Ignore:
Timestamp:
Nov 2, 2009, 5:31:36 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Backup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_expiry.c

    r25 r36  
    3636#include "fD.h"
    3737
    38 /* Delay for garbage collection of expired threads, in seconds */
    39 #define GC_TIME         60
     38/* Delay for garbage collection of expired peers, in seconds */
     39#define GC_TIME         120
    4040
    4141static pthread_t       exp_thr;
     
    6464                                continue;
    6565                       
    66                         if (peer->p_hdr.info.pi_flags.exp == PI_EXP_NONE)
    67                                 continue; /* This peer was not supposed to expire, keep it in the list */
     66                        if (peer->p_hdr.info.pi_flags.persist == PI_PRST_ALWAYS)
     67                                continue; /* This peer was not supposed to terminate, keep it in the list for debug */
    6868                       
    6969                        /* Ok, the peer was expired, let's remove it */
Note: See TracChangeset for help on using the changeset viewer.