Navigation


Changeset 43:2db15632a63d in freeDiameter for freeDiameter/p_psm.c


Ignore:
Timestamp:
Nov 25, 2009, 7:07:09 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a large part of connection establishment logic, to test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_psm.c

    r42 r43  
    250250        fd_p_cnx_abort(peer, terminate);
    251251       
    252         if (peer->p_cnxctx) {
    253                 fd_cnx_destroy(peer->p_cnxctx);
    254                 peer->p_cnxctx = NULL;
    255         }
    256        
    257         if (peer->p_initiator) {
    258                 fd_cnx_destroy(peer->p_initiator);
    259                 peer->p_initiator = NULL;
    260         }
     252        fd_p_ce_clear_cnx(peer, NULL);
    261253       
    262254        if (peer->p_receiver) {
     
    594586                struct cnxctx * cnx = ev_data;
    595587               
    596                 /* Release the resources of the thread */
     588                /* Release the resources of the connecting thread */
    597589                CHECK_POSIX_DO( pthread_join( peer->p_ini_thr, NULL), /* ignore, it is not a big deal */);
    598590                peer->p_ini_thr = (pthread_t)NULL;
     
    642634                               
    643635                                /* Handle receiver side */
    644                                 CHECK_FCT_DO( fd_p_ce_winelection(peer), goto psm_end );
     636                                CHECK_FCT_DO( fd_p_ce_process_receiver(peer), goto psm_end );
    645637                                break;
    646638                }
Note: See TracChangeset for help on using the changeset viewer.