Changeset 74:9dcb1bd11a07 in freeDiameter for freeDiameter/p_psm.c
- Timestamp:
- Dec 1, 2009, 2:14:34 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_psm.c
r70 r74 236 236 peer->p_psm_timer.tv_sec += delay; 237 237 238 TRACE_DEBUG(FULL, "Peer timeout reset to %d seconds%s", delay, add_random ? " (+/- 2)", "" ); 239 238 240 #ifdef SLOW_PSM 239 241 /* temporary for debug */ … … 246 248 { 247 249 /* Move to CLOSED state: failover messages, stop OUT thread, unlink peer from active list */ 248 CHECK_FCT_DO( fd_psm_change_state(peer, STATE_CLOSED), /* continue */ ); 250 if (peer->p_hdr.info.runtime.pir_state != STATE_ZOMBIE) { 251 CHECK_FCT_DO( fd_psm_change_state(peer, STATE_CLOSED), /* continue */ ); 252 } 249 253 250 254 fd_p_cnx_abort(peer, terminate); … … 514 518 switch (peer->p_hdr.info.runtime.pir_state) { 515 519 case STATE_WAITCNXACK_ELEC: 516 TODO("Reply CEA on the receiver side and go to OPEN state"); 517 goto psm_loop; 520 /* Abort the initiating side */ 521 fd_p_cnx_abort(peer, 0); 522 /* Process the receiver side */ 523 CHECK_FCT_DO( fd_p_ce_process_receiver(peer), goto psm_end ); 524 break; 518 525 519 526 case STATE_OPEN: … … 534 541 535 542 case STATE_CLOSED: 536 /* Go to the next event */ 537 goto psm_loop; 538 } 543 /* Just ignore */ 544 ; 545 } 546 goto psm_loop; 539 547 } 540 548
Note: See TracChangeset
for help on using the changeset viewer.