mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 23:01:24 +02:00
CLEANUP: mux-h2: Rename h2c_frt_handle_data() to be generic
h2c_frt_handle_data() is now used to parse DATA frames on the frontend and the backend side. Thus it is renamed into h2c_handle_data().
This commit is contained in:
parent
142854b1da
commit
fac0f8f029
@ -2807,7 +2807,7 @@ static struct h2s *h2c_bck_handle_headers(struct h2c *h2c, struct h2s *h2s)
|
|||||||
/* processes a DATA frame. Returns > 0 on success or zero on missing data.
|
/* processes a DATA frame. Returns > 0 on success or zero on missing data.
|
||||||
* It may return an error in h2c or h2s. Described in RFC7540#6.1.
|
* It may return an error in h2c or h2s. Described in RFC7540#6.1.
|
||||||
*/
|
*/
|
||||||
static int h2c_frt_handle_data(struct h2c *h2c, struct h2s *h2s)
|
static int h2c_handle_data(struct h2c *h2c, struct h2s *h2s)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
@ -3304,7 +3304,7 @@ static void h2_process_demux(struct h2c *h2c)
|
|||||||
case H2_FT_DATA:
|
case H2_FT_DATA:
|
||||||
if (h2c->st0 == H2_CS_FRAME_P) {
|
if (h2c->st0 == H2_CS_FRAME_P) {
|
||||||
TRACE_PROTO("receiving H2 DATA frame", H2_EV_RX_FRAME|H2_EV_RX_DATA, h2c->conn, h2s);
|
TRACE_PROTO("receiving H2 DATA frame", H2_EV_RX_FRAME|H2_EV_RX_DATA, h2c->conn, h2s);
|
||||||
ret = h2c_frt_handle_data(h2c, h2s);
|
ret = h2c_handle_data(h2c, h2s);
|
||||||
}
|
}
|
||||||
HA_ATOMIC_ADD(&h2c->px_counters->data_rcvd, 1);
|
HA_ATOMIC_ADD(&h2c->px_counters->data_rcvd, 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user