Skip to content

Commit 36db27b

Browse files
authored
Merge pull request #2346 from tempesta-tech/MekhanikEvgenii/fix-potencial-bug
Fix potencial BUG when Tempesta shutdowned
2 parents 6cbd066 + a23c1a4 commit 36db27b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

fw/http.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,16 +2895,7 @@ tfw_http_conn_release(TfwConn *conn)
28952895
*/
28962896
list_for_each_entry_safe(req, tmp, &zap_queue, fwd_list) {
28972897
list_del_init(&req->fwd_list);
2898-
if (TFW_MSG_H2(req)) {
2899-
tfw_h2_req_unlink_and_close_stream(req);
2900-
}
2901-
else if (unlikely(!list_empty_careful(&req->msg.seq_list))) {
2902-
spin_lock_bh(&((TfwCliConn *)req->conn)->seq_qlock);
2903-
if (unlikely(!list_empty(&req->msg.seq_list)))
2904-
list_del_init(&req->msg.seq_list);
2905-
spin_unlock_bh(&((TfwCliConn *)req->conn)->seq_qlock);
2906-
}
2907-
tfw_http_conn_msg_free((TfwHttpMsg *)req);
2898+
tfw_http_conn_req_clean(req);
29082899
}
29092900
}
29102901

fw/http_msg.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,6 @@ tfw_http_msg_del_trailer_hdrs(TfwHttpMsg *hm)
11431143
*/
11441144
if (was_deleted)
11451145
__hdr_del_from_tbl(ht, hid);
1146-
--ht->off;
11471146
} while (hid);
11481147
}
11491148

0 commit comments

Comments
 (0)