Mercurial > hg > freeDiameter
diff freeDiameter/peers.c @ 175:7704fe55bb35
Added comment on expiry
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 03 Feb 2010 16:19:09 +0900 |
parents | 547f30e9a8ae |
children | 5df55136361b |
line wrap: on
line diff
--- a/freeDiameter/peers.c Wed Feb 03 15:58:56 2010 +0900 +++ b/freeDiameter/peers.c Wed Feb 03 16:19:09 2010 +0900 @@ -451,7 +451,8 @@ /* Set this peer to expire on inactivity */ peer->p_hdr.info.config.pic_flags.exp = PI_EXP_INACTIVE; - peer->p_hdr.info.config.pic_lft = 3600 * 3; /* 3 hours without any message */ + peer->p_hdr.info.config.pic_lft = 3600; /* 1 hour without any message + -- RFC3539 states that this must not be inferior to BRINGDOWN_INTERVAL = 5 minutes */ /* Insert the new peer in the list (the PSM will take care of setting the expiry after validation) */ fd_list_insert_before( li, &peer->p_hdr.chain );