STREAM frame will also be used by the new QMux protocol. This requires
some adaptation in the qf_stream structure. Reference to qc_stream_desc
object is replaced by a generic void* pointer.
This change is necessary as QMux protocol will not use any
qc_stream_desc elements for emission.
#include <import/ebtree-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/list.h>
-#include <haproxy/quic_stream-t.h>
#include <haproxy/quic_token.h>
extern struct pool_head *pool_head_quic_frame;
struct qf_stream {
uint64_t id;
- struct qc_stream_desc *stream;
+ void *stream;
/* used only on TX when constructing frames.
* Data cleared when processing ACK related to this STREAM frame.
goto err;
}
- frm->stream.stream = qcs->tx.stream;
+ frm->stream.stream =
+ conn_is_quic(qcc->conn) ? (void *)qcs->tx.stream : (void *)qcs;
frm->stream.id = qcs->id;
frm->stream.offset = 0;
frm->stream.dup = 0;