Compute a thread ID from a QUIC CID and attach the I/O handler to this
thread.
chunk_appendf(buf, ")");
}
+/* Simply compute a thread ID from a CID */
+static inline unsigned long quic_get_cid_tid(const struct quic_cid *cid)
+{
+ return cid->data[0] % global.nbthread;
+}
+
/* Free the CIDs attached to <conn> QUIC connection.
* Always succeeds.
*/
struct bind_conf *bc = __objt_listener(conn->target)->bind_conf;
struct quic_conn *qc = ctx->conn->qc;
+ ctx->wait_event.tasklet->tid = quic_get_cid_tid(&qc->scid);
if (ssl_bio_and_sess_init(conn, bc->initial_ctx,
&ctx->ssl, &ctx->bio, ha_quic_meth, ctx) == -1)
goto err;