Skip to content

Commit 3b930c1

Browse files
committed
Remove extra apm update for HM responses
The issue was noticed in comment #1169 (comment) Anyway tfw_apm_update() in tfw_http_hm_drop_resp() doesn't look good.
1 parent f763b9d commit 3b930c1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tempesta_fw/http.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,8 +2787,6 @@ tfw_http_hm_drop_resp(TfwHttpResp *resp)
27872787
TfwHttpReq *req = resp->req;
27882788

27892789
tfw_connection_unlink_msg(resp->conn);
2790-
tfw_apm_update(((TfwServer *)resp->conn->peer)->apmref,
2791-
resp->jrxtstamp, resp->jrxtstamp - req->jtxtstamp);
27922790
tfw_http_conn_msg_free((TfwHttpMsg *)resp);
27932791
tfw_http_msg_free((TfwHttpMsg *)req);
27942792
}

0 commit comments

Comments
 (0)