]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/quic_conn: remove redundant concurrency check
authorFrantisek Tobias <frantisek.tobias@nic.cz>
Tue, 4 Nov 2025 07:33:22 +0000 (08:33 +0100)
committerFrantisek Tobias <frantisek.tobias@nic.cz>
Wed, 7 Jan 2026 13:39:14 +0000 (14:39 +0100)
daemon/quic_common.h
daemon/quic_conn.c

index 5a77c9d4c9d24d789ca888e30af76b7deab1f389..3e84101259970c865d715ad40cffd53abb64f4b5 100644 (file)
@@ -48,8 +48,11 @@ typedef enum {
 #define QUIC_SEND_EXCESSIVE_LOAD         (-KR_QUIC_ERR_EXCESSIVE_LOAD)
 #define BUCKETS_PER_CONNS 8
 
+/* Application is responsible for extending the stream limit.
+ * This mainly means that this value limits the number of concurrent streams
+ * because only once a stream is closed is this max_streams frame sent to the
+ * remote endpoint. */
 #define MAX_STREAMS_BIDI 1024
-#define MAX_STREAMS_ACTIVE 64
 
 #define MAX_QUIC_PKT_SIZE 65536
 #define MAX_QUIC_FRAME_SIZE 65536
index dd196fad97fc351594f1f14560ab2ee764ea6615..2099ba1d51d2597209018467d7c12c4c02c105ac 100644 (file)
@@ -162,14 +162,6 @@ static int stream_open_cb(ngtcp2_conn *ngconn,
                int64_t stream_id, void *user_data)
 {
        struct pl_quic_conn_sess_data *conn = user_data;
-
-       if (conn->streams_count >= MAX_STREAMS_ACTIVE) {
-               kr_log_warning(DOQ,
-                       "Refusing to open stream stream_id: %zu, reached limit of active streams\n",
-                       stream_id);
-               return NGTCP2_ERR_STREAM_LIMIT;
-       }
-
        struct kr_quic_stream_param params = {
                .stream_id = stream_id,
                .conn = ngconn,