Navigation


Changeset 824:89c5849b0832 in freeDiameter for libfdcore


Ignore:
Timestamp:
Sep 13, 2012, 8:41:29 PM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Allow retransmission of messages on timeout

Location:
libfdcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/messages.c

    r740 r824  
    307307       
    308308        /* Save the callback in the message */
    309         if (anscb) {
    310                 CHECK_FCT(  fd_msg_anscb_associate( *pmsg, anscb, data, NULL /* we should maybe use a safeguard here like 1 hour or so? */ )  );
    311         }
     309        CHECK_FCT(  fd_msg_anscb_associate( *pmsg, anscb, data, NULL /* we should maybe use a safeguard here like 1 hour or so? */ )  );
    312310       
    313311        /* Post the message in the outgoing queue */
  • libfdcore/p_sr.c

    r740 r824  
    105105        CHECK_FCT_DO( fd_msg_anscb_get( expired_req, &anscb, &data ), return NULL);
    106106        ASSERT(anscb);
     107       
     108        /* Clean up this data from the message */
     109        CHECK_FCT_DO( fd_msg_anscb_associate( expired_req, NULL, NULL, NULL ), return NULL);
    107110
    108111        /* Call it */
Note: See TracChangeset for help on using the changeset viewer.