Navigation


Changeset 229:965f5971dc23 in freeDiameter for freeDiameter/p_dp.c


Ignore:
Timestamp:
Mar 2, 2010, 3:55:26 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Broadcast CEA over all streams to avoid possible race condition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_dp.c

    r129 r229  
    8787                                if (dictobj) {
    8888                                        CHECK_FCT( fd_dict_getval( dictobj, &er.search ) );
    89                                         fd_log_debug("Peer '%s' sent a DPR with cause: %s\n", peer->p_hdr.info.pi_diamid, er.search.enum_name);
     89                                        TRACE_DEBUG(INFO, "Peer '%s' sent a DPR with cause: %s\n", peer->p_hdr.info.pi_diamid, er.search.enum_name);
    9090                                } else {
    91                                         fd_log_debug("Peer '%s' sent a DPR with unknown cause: %u\n", peer->p_hdr.info.pi_diamid, peer->p_hdr.info.runtime.pir_lastDC);
     91                                        TRACE_DEBUG(INFO, "Peer '%s' sent a DPR with unknown cause: %u\n", peer->p_hdr.info.pi_diamid, peer->p_hdr.info.runtime.pir_lastDC);
    9292                                }
    9393                        } else {
    94                                 fd_log_debug("Peer '%s' sent a DPR without Disconnect-Cause AVP\n", peer->p_hdr.info.pi_diamid);
     94                                TRACE_DEBUG(INFO, "Peer '%s' sent a DPR without Disconnect-Cause AVP\n", peer->p_hdr.info.pi_diamid);
    9595                        }
    9696                }
     
    104104               
    105105                /* Now send the DPA */
    106                 CHECK_FCT( fd_out_send( msg, NULL, peer) );
     106                CHECK_FCT( fd_out_send( msg, NULL, peer, FD_CNX_ORDERED) );
    107107               
    108108                /* Move to CLOSED state */
     
    115115                /* We received a DPA */
    116116                if (peer->p_hdr.info.runtime.pir_state != STATE_CLOSING) {
    117                         TRACE_DEBUG(INFO, "Ignore DPA received in state %s", STATE_STR(peer->p_hdr.info.runtime.pir_state));
     117                        TRACE_DEBUG(INFO, "Ignoring DPA received in state %s", STATE_STR(peer->p_hdr.info.runtime.pir_state));
    118118                }
    119119                       
     
    168168       
    169169        /* Now send the DPR message */
    170         CHECK_FCT_DO( fd_out_send(&msg, NULL, peer), /* ignore since we are on timeout anyway */ );
     170        CHECK_FCT_DO( fd_out_send(&msg, NULL, peer, FD_CNX_ORDERED), /* ignore since we are on timeout anyway */ );
    171171       
    172172        return 0;
Note: See TracChangeset for help on using the changeset viewer.