Changeset 706:4ffbc9f1e922 in freeDiameter for libfdcore/p_out.c
- Timestamp:
- Feb 9, 2011, 3:26:58 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_out.c
r691 r706 109 109 { 110 110 char buf[48]; 111 s printf(buf, "OUT/%.*s", (int)sizeof(buf) - 5, peer->p_hdr.info.pi_diamid);111 snprintf(buf, sizeof(buf), "OUT/%s", peer->p_hdr.info.pi_diamid); 112 112 fd_log_threadname ( buf ); 113 113 } … … 149 149 CHECK_PARAMS( msg && *msg && (cnx || (peer && peer->p_cnxctx))); 150 150 151 fd_cpu_flush_cache(); 152 if (peer && (peer->p_hdr.info.runtime.pir_state == STATE_OPEN)) { 151 if (fd_peer_getstate(peer) == STATE_OPEN) { 153 152 /* Normal case: just queue for the out thread to pick it up */ 154 153 CHECK_FCT( fd_fifo_post(peer->p_tosend, msg) );
Note: See TracChangeset
for help on using the changeset viewer.