Skip to content

Commit

Permalink
tm: reset async suspended flag when continuing via failure_route
Browse files Browse the repository at this point in the history
- suspended transaction can be resumed automatically on timeout, without
  t_continue(), ending up in failure_route

(cherry picked from commit 171553e)
  • Loading branch information
miconda committed Sep 17, 2015
1 parent ce43a14 commit 0c6bed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/tm/t_reply.c
Expand Up @@ -982,6 +982,8 @@ int run_failure_handlers(struct cell *t, struct sip_msg *rpl,
* set next failure route, failure_route will not be reentered
* on failure */
t->on_failure=0;
/* if continuing on timeout of a suspended transaction, reset the flag */
t->flags &= ~T_ASYNC_SUSPENDED;
if (exec_pre_script_cb(&faked_req, FAILURE_CB_TYPE)>0) {
/* run a failure_route action if some was marked */
if (run_top_route(failure_rt.rlist[on_failure], &faked_req, 0)<0)
Expand Down

0 comments on commit 0c6bed8

Please sign in to comment.