Changeset 688:8c3dc8584dab in freeDiameter for libfdcore/p_sr.c
- Timestamp:
- Jan 19, 2011, 7:05:30 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_sr.c
r662 r688 109 109 /* If the callback did not dispose of the message, do it now */ 110 110 if (expired_req) { 111 fd_msg_log(FD_MSG_LOG_DROPPED, expired_req, "Expiration period completed without an answer, and the expiry callback did not dispose of the message."); 111 112 CHECK_FCT_DO( fd_msg_free(expired_req), /* ignore */ ); 112 113 } … … 296 297 if (fd_msg_is_routable(sr->req)) { 297 298 struct msg_hdr * hdr = NULL; 299 int ret; 298 300 299 301 /* Set the 'T' flag */ … … 303 305 304 306 /* Requeue for sending to another peer */ 305 CHECK_FCT_DO(fd_fifo_post(fd_g_outgoing, &sr->req), 306 CHECK_FCT_DO(fd_msg_free(sr->req), /* What can we do more? */)); 307 CHECK_FCT_DO( ret = fd_fifo_post(fd_g_outgoing, &sr->req), 308 { 309 fd_msg_log( FD_MSG_LOG_DROPPED, sr->req, "Internal error: error while requeuing during failover: %s", strerror(ret) ); 310 CHECK_FCT_DO(fd_msg_free(sr->req), /* What can we do more? */) 311 }); 307 312 } else { 308 /* Just free the request... */ 313 /* Just free the request. */ 314 fd_msg_log( FD_MSG_LOG_DROPPED, sr->req, "Local message discarded during failover" ); 309 315 CHECK_FCT_DO(fd_msg_free(sr->req), /* Ignore */); 310 316 }
Note: See TracChangeset
for help on using the changeset viewer.