mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
MINOR: h2/htx: Set hdrs_bytes on the SL when an HTX message is produced
This commit is contained in:
parent
05c083ca8d
commit
33543e73a2
1 changed files with 8 additions and 0 deletions
8
src/h2.c
8
src/h2.c
|
|
@ -590,6 +590,7 @@ int h2_make_htx_request(struct http_hdr *list, struct htx *htx, unsigned int *ms
|
|||
int phdr;
|
||||
int ret;
|
||||
int i;
|
||||
uint32_t used = htx_used_space(htx);
|
||||
struct htx_sl *sl = NULL;
|
||||
unsigned int sl_flags = 0;
|
||||
|
||||
|
|
@ -745,6 +746,9 @@ int h2_make_htx_request(struct http_hdr *list, struct htx *htx, unsigned int *ms
|
|||
/* now send the end of headers marker */
|
||||
htx_add_endof(htx, HTX_BLK_EOH);
|
||||
|
||||
/* Set bytes used in the HTX mesage for the headers now */
|
||||
sl->hdrs_bytes = htx_used_space(htx) - used;
|
||||
|
||||
ret = 1;
|
||||
return ret;
|
||||
|
||||
|
|
@ -830,6 +834,7 @@ int h2_make_htx_response(struct http_hdr *list, struct htx *htx, unsigned int *m
|
|||
int phdr;
|
||||
int ret;
|
||||
int i;
|
||||
uint32_t used = htx_used_space(htx);
|
||||
struct htx_sl *sl = NULL;
|
||||
unsigned int sl_flags = 0;
|
||||
|
||||
|
|
@ -928,6 +933,9 @@ int h2_make_htx_response(struct http_hdr *list, struct htx *htx, unsigned int *m
|
|||
/* now send the end of headers marker */
|
||||
htx_add_endof(htx, HTX_BLK_EOH);
|
||||
|
||||
/* Set bytes used in the HTX mesage for the headers now */
|
||||
sl->hdrs_bytes = htx_used_space(htx) - used;
|
||||
|
||||
ret = 1;
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue