]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf/mux-h1: use different criticalities for buffer allocations
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Apr 2024 07:21:34 +0000 (09:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2024 15:18:13 +0000 (17:18 +0200)
commitc510e81a3f6205f579e68e9539e701ebbb036246
treea274bb4c84c555399663558d615de1a4c48a46aa
parent4a42af17440d9eb09ea7fb699924297871c7b760
MINOR: dynbuf/mux-h1: use different criticalities for buffer allocations

While it could certainly still be improved, this first approach consists
in assigning buffers like this in the H1 mux:
  - h1c->obuf : DB_MUX_TX
  - h1c->ibuf : DB_MUX_RX
  - h1s->rxbuf: DB_SE_RX

That's done via 3 distinct functions for better code clarity, and it
also allowed to move the missing buffer flags assignment there.

Among possible improvements would be to take into consideration the
state of the parser (i.e. no data yet vs data, or headers vs payload)
so that even server beginning of response or pure payload can be lowered
in priority.
src/mux_h1.c