Navigation


Changeset 74:9dcb1bd11a07 in freeDiameter for freeDiameter/p_psm.c


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

Some cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_psm.c

    r70 r74  
    236236        peer->p_psm_timer.tv_sec += delay;
    237237       
     238        TRACE_DEBUG(FULL, "Peer timeout reset to %d seconds%s", delay, add_random ? " (+/- 2)", "" );
     239       
    238240#ifdef SLOW_PSM
    239241        /* temporary for debug */
     
    246248{
    247249        /* 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        }
    249253       
    250254        fd_p_cnx_abort(peer, terminate);
     
    514518                switch (peer->p_hdr.info.runtime.pir_state) {
    515519                        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;
    518525                       
    519526                        case STATE_OPEN:
     
    534541                               
    535542                        case STATE_CLOSED:
    536                                 /* Go to the next event */
    537                                 goto psm_loop;
    538                 }
     543                                /* Just ignore */
     544                                ;
     545                }
     546                goto psm_loop;
    539547        }
    540548       
Note: See TracChangeset for help on using the changeset viewer.