summaryrefslogtreecommitdiffstats
path: root/lib/resolve.h
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2020-08-07 13:33:06 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2020-10-13 12:55:22 +0200
commitb009eb25d20d4909f394565a0a661d7a0a12be05 (patch)
treec7970d1e4639f7cd9619d6a6c5ce421f223bea37 /lib/resolve.h
parentdoh: adjust endpoint kinds (diff)
downloadknot-resolver-b009eb25d20d4909f394565a0a661d7a0a12be05.tar.xz
knot-resolver-b009eb25d20d4909f394565a0a661d7a0a12be05.zip
daemon/http: store stream_id per request to support query pipelining
Diffstat (limited to 'lib/resolve.h')
-rw-r--r--lib/resolve.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/resolve.h b/lib/resolve.h
index 3a224306..db596a38 100644
--- a/lib/resolve.h
+++ b/lib/resolve.h
@@ -191,6 +191,7 @@ struct kr_request {
const knot_pkt_t *packet;
struct kr_request_qsource_flags flags; /**< See definition above. */
size_t size; /**< query packet size */
+ int32_t stream_id; /**< HTTP/2 stream ID for DoH requests */
} qsource;
struct {
unsigned rtt; /**< Current upstream RTT */
@@ -248,7 +249,7 @@ int kr_resolve_begin(struct kr_request *request, struct kr_context *ctx, knot_pk
* Consume input packet (may be either first query or answer to query originated from kr_resolve_produce())
*
* @note If the I/O fails, provide an empty or NULL packet, this will make iterator recognize nameserver failure.
- *
+ *
* @param request request state (awaiting input)
* @param src [in] packet source address
* @param packet [in] input packet
@@ -263,7 +264,7 @@ int kr_resolve_consume(struct kr_request *request, const struct sockaddr *src, k
* If the CONSUME is returned then dst, type and packet will be filled with
* appropriate values and caller is responsible to send them and receive answer.
* If it returns any other state, then content of the variables is undefined.
- *
+ *
* @param request request state (in PRODUCE state)
* @param dst [out] possible address of the next nameserver
* @param type [out] possible used socket type (SOCK_STREAM, SOCK_DGRAM)