mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 15:51:24 +02:00
CLEANUP: mux-h2: Rename h2s_frt_make_resp_data() to be generic
h2s_frt_make_resp_data() is now used to emit DATA frames on the frontend and the backend side. Thus it is renamed into h2s_make_data().
This commit is contained in:
parent
198ef8b1de
commit
142854b1da
@ -5400,7 +5400,7 @@ static size_t h2s_bck_make_req_headers(struct h2s *h2s, struct htx *htx)
|
|||||||
* happened subsequently to a successful send. Returns the number of data bytes
|
* happened subsequently to a successful send. Returns the number of data bytes
|
||||||
* consumed, or zero if nothing done. Note that EOM count for 1 byte.
|
* consumed, or zero if nothing done. Note that EOM count for 1 byte.
|
||||||
*/
|
*/
|
||||||
static size_t h2s_frt_make_resp_data(struct h2s *h2s, struct buffer *buf, size_t count)
|
static size_t h2s_make_data(struct h2s *h2s, struct buffer *buf, size_t count)
|
||||||
{
|
{
|
||||||
struct h2c *h2c = h2s->h2c;
|
struct h2c *h2c = h2s->h2c;
|
||||||
struct htx *htx;
|
struct htx *htx;
|
||||||
@ -6108,7 +6108,7 @@ static size_t h2_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t coun
|
|||||||
* This EOM necessarily is one before trailers, as the EOM following
|
* This EOM necessarily is one before trailers, as the EOM following
|
||||||
* trailers would have been consumed by the trailers parser.
|
* trailers would have been consumed by the trailers parser.
|
||||||
*/
|
*/
|
||||||
ret = h2s_frt_make_resp_data(h2s, buf, count);
|
ret = h2s_make_data(h2s, buf, count);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
htx = htx_from_buf(buf);
|
htx = htx_from_buf(buf);
|
||||||
total += ret;
|
total += ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user