Skip to content
Snippets Groups Projects
Commit 2c674d4d authored by Jan Hák's avatar Jan Hák Committed by Daniel Salzman
Browse files

kdig: open a new data stream when the connection is already open because to the keepopen flag

parent 6355c224
No related branches found
No related tags found
No related merge requests found
......@@ -777,6 +777,12 @@ int quic_send_dns_query(quic_ctx_t *ctx, int sockfd, struct addrinfo *srv,
.revents = 0,
};
// Open stream when connection keep-opened
if (ctx->stream.id == -1) {
quic_open_bidi_stream(ctx);
quic_send(ctx, sockfd, srv->ai_family);
}
ctx->stream.out_ack += buf_len + sizeof(uint16_t);
while (ctx->stream.out_ack) {
if (quic_timeout(ctx->idle_ts, ctx->tls->wait)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment