Changeset 1108:7ee7b95701c9 in freeDiameter for extensions
- Timestamp:
- May 13, 2013, 10:46:39 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rt_busypeers/rtbusy.c
r1047 r1108 107 107 /* Send the query again. We need to re-associate the expirecb which was cleaned, if it is used */ 108 108 if (rtbusy_conf.RelayTimeout) { 109 struct timespec tm = { .tv_sec = rtbusy_conf.RelayTimeout , .tv_nsec=0};109 struct timespec tm = { .tv_sec = rtbusy_conf.RelayTimeout/1000, .tv_nsec=1000000LL * (rtbusy_conf.RelayTimeout % 1000) }; 110 110 CHECK_FCT( fd_msg_send_timeout( pmsg, NULL, NULL, rtbusy_expirecb, &tm ) ); 111 111 } else { … … 118 118 CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, pmsg, MSGFL_ANSW_ERROR ) ); 119 119 120 CHECK_FCT( fd_msg_rescode_set(*pmsg, "DIAMETER_TOO_BUSY", "[rt_busypeers] Timeout reached while waiting for an an wer", NULL, 1 ) );120 CHECK_FCT( fd_msg_rescode_set(*pmsg, "DIAMETER_TOO_BUSY", "[rt_busypeers] Timeout reached while waiting for an answer", NULL, 1 ) ); 121 121 122 122 CHECK_FCT( fd_msg_send(pmsg, NULL, NULL) ); … … 149 149 /* If the message is a request, we only associate the timeout */ 150 150 if (hdr->msg_flags & CMD_FLAG_REQUEST) { 151 struct timespec tm = { .tv_sec = rtbusy_conf.RelayTimeout , .tv_nsec=0};151 struct timespec tm = { .tv_sec = rtbusy_conf.RelayTimeout/1000, .tv_nsec=1000000LL * (rtbusy_conf.RelayTimeout % 1000) }; 152 152 CHECK_FCT( fd_msg_anscb_associate( *pmsg, NULL, NULL, rtbusy_expirecb, &tm ) ); 153 153 return 0;
Note: See TracChangeset
for help on using the changeset viewer.