Mercurial > hg > freeDiameter
comparison 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 |
comparison
equal
deleted
inserted
replaced
174:2b2f78036749 | 175:7704fe55bb35 |
---|---|
449 peer->p_flags.pf_responder = 1; | 449 peer->p_flags.pf_responder = 1; |
450 peer->p_flags.pf_delete = 1; | 450 peer->p_flags.pf_delete = 1; |
451 | 451 |
452 /* Set this peer to expire on inactivity */ | 452 /* Set this peer to expire on inactivity */ |
453 peer->p_hdr.info.config.pic_flags.exp = PI_EXP_INACTIVE; | 453 peer->p_hdr.info.config.pic_flags.exp = PI_EXP_INACTIVE; |
454 peer->p_hdr.info.config.pic_lft = 3600 * 3; /* 3 hours without any message */ | 454 peer->p_hdr.info.config.pic_lft = 3600; /* 1 hour without any message |
455 -- RFC3539 states that this must not be inferior to BRINGDOWN_INTERVAL = 5 minutes */ | |
455 | 456 |
456 /* Insert the new peer in the list (the PSM will take care of setting the expiry after validation) */ | 457 /* Insert the new peer in the list (the PSM will take care of setting the expiry after validation) */ |
457 fd_list_insert_before( li, &peer->p_hdr.chain ); | 458 fd_list_insert_before( li, &peer->p_hdr.chain ); |
458 | 459 |
459 /* Start the PSM, which will receive the event bellow */ | 460 /* Start the PSM, which will receive the event bellow */ |