On Jul 12, 2016, at 12:42 PM, Willy Tarreau <[email protected]> wrote:

Please take a look at how track-sc are added  to http-request, look for
"ACT_ACTION_TRK_SC0" in proto_http.c, you'll find your way through it,
and see if you can duplicate this to the response.

I just baked some draft patchs. and get some questions:

1. I didn't follow the early code cleanup, and now in v1.6 branch, there is a struct list called `http_res_actions`, should new actions be put in that list instead? the refactoring history spawned many commits, I couldn't figure out the orginal intention.

2. what's the purpose of there two macro: `STKCTR_TRACK_BACKEND` and `STKCTR_TRACK_CONTENT`, couldn't find too much comment.

3. it feels a little wired to me to store the stick counter data type like `http_req_rate` or `conn_rate` in a http response phase.


Attachment: 0001-add-httprsp-track-sc.patch
Description: Binary data

Attachment: 0002-rename-http_req_trk_idx-to-http_trk_idx.patch
Description: Binary data


--
Good day!
ruoshan

Reply via email to