Skip to content

Commit b25788d

Browse files
committed
[tm] fixed init of branch bitmask in timeout handler
related to f0223cc
1 parent 65d4fda commit b25788d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

modules/tm/t_cancel.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ void which_cancel( struct cell *t, branch_bm_t *cancel_bm )
5656
if (should_cancel_branch(t, i))
5757
BRANCH_BM_SET_IDX( *cancel_bm, i);
5858
}
59+
60+
LM_DBG("branches to cancel ["BRANCH_BM_SPECS"], range %d:%d\n",
61+
BRANCH_BM_ARGS(*cancel_bm),t->first_branch,t->nr_of_outgoings-1);
62+
5963
}
6064

6165

@@ -123,7 +127,7 @@ void cancel_branch( struct cell *t, int branch )
123127
_tm_branch_index = 0;
124128
}
125129

126-
LM_DBG("sending cancel...\n");
130+
LM_DBG("sending cancel on branch %d...\n",branch);
127131
if (TM_BRANCH(t,branch).br_flags & tcp_no_new_conn_bflag)
128132
tcp_no_new_conn = 1;
129133
backup_list = set_avp_list( &t->user_avps );

modules/tm/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ inline static void final_response_handler( struct timer_link *fr_tl )
350350
context_p old_ctx;
351351
struct retr_buf* r_buf;
352352
struct cell *t;
353-
branch_bm_t cancel_bitmap;
353+
branch_bm_t cancel_bitmap = BRANCH_BM_ZERO;
354354

355355
if (fr_tl==0){
356356
/* or BUG?, ignoring it for now */

0 commit comments

Comments
 (0)