mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
BUG/MINOR: h3/hq_interop: Fix CS and stream creation
Some recent API changes about conn-stream and stream creation were not fully applied to the H3 part. It is 2.6-DEV specific, no backport is needed.
This commit is contained in:
parent
c983b2114d
commit
9264a2c0e8
4
src/h3.c
4
src/h3.c
@ -179,11 +179,11 @@ static int h3_headers_to_htx(struct qcs *qcs, struct buffer *buf, uint64_t len,
|
|||||||
cs = cs_new();
|
cs = cs_new();
|
||||||
if (!cs)
|
if (!cs)
|
||||||
return 1;
|
return 1;
|
||||||
cs_attach_endp(&qcs->qcc->conn->obj_type, qcs);
|
cs_attach_endp(cs, &qcs->qcc->conn->obj_type, qcs);
|
||||||
|
|
||||||
cs->flags |= CS_FL_NOT_FIRST;
|
cs->flags |= CS_FL_NOT_FIRST;
|
||||||
cs->ctx = qcs;
|
cs->ctx = qcs;
|
||||||
stream_create_from_cs(cs, &htx_buf);
|
stream_new(qcs->qcc->conn->owner, cs, &htx_buf);
|
||||||
|
|
||||||
/* buffer is transferred to conn_stream and set to NULL
|
/* buffer is transferred to conn_stream and set to NULL
|
||||||
* except on stream creation error.
|
* except on stream creation error.
|
||||||
|
@ -77,7 +77,7 @@ static int hq_interop_decode_qcs(struct qcs *qcs, int fin, void *ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
cs_attach_endp(cs, &qcs->qcc->conn->obj_type, qcs);
|
cs_attach_endp(cs, &qcs->qcc->conn->obj_type, qcs);
|
||||||
cs->ctx = qcs;
|
cs->ctx = qcs;
|
||||||
stream_create_from_cs(cs, &htx_buf);
|
stream_new(qcs->qcc->conn->owner, cs, &htx_buf);
|
||||||
|
|
||||||
b_del(rxbuf, b_data(rxbuf));
|
b_del(rxbuf, b_data(rxbuf));
|
||||||
b_free(&htx_buf);
|
b_free(&htx_buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user