aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Dinh <[email protected]>2026-06-29 17:55:25 +0200
committerNorbert Pocs <[email protected]>2026-07-21 11:22:31 +0200
commite528888bc069f216620ea9d7062c673c18bafdcc (patch)
tree75ed3980aead501e97abbf9849f5bf97d708b6cd
parentPort script_15 to radix test framework (diff)
downloadopenssl-e528888bc069f216620ea9d7062c673c18bafdcc.tar.gz
openssl-e528888bc069f216620ea9d7062c673c18bafdcc.zip
Port script_16 to radix test framework
Assisted-by: Claude:claude-sonnet-4-6 Reviewed-by: Saša Nedvědický <[email protected]> Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Bob Beck <[email protected]> MergeDate: Tue Jul 21 09:22:46 2026 (Merged from https://github.com/openssl/openssl/pull/31889)
-rw-r--r--test/quic_multistream_test.c37
-rw-r--r--test/radix/quic_tests.c35
2 files changed, 35 insertions, 37 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index c78ffacecaf..b7472c4c375 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2105,42 +2105,7 @@ static const struct script_op script_15[] = {
/* 16. Server sending large number of streams, MAX_STREAMS test */
static const struct script_op script_16[] = {
- OP_C_SET_ALPN("ossltest"),
- OP_C_CONNECT_WAIT(),
- OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_NONE),
-
- /*
- * This will cause a protocol violation to be raised by the client if we are
- * not handling the stream limit correctly on the TX side.
- */
- OP_BEGIN_REPEAT(200),
-
- OP_S_NEW_STREAM_BIDI(a, ANY_ID),
- OP_S_WRITE(a, "foo", 3),
- OP_S_CONCLUDE(a),
- OP_S_UNBIND_STREAM_ID(a),
-
- OP_END_REPEAT(),
-
- /* Prove that the connection is still good. */
- OP_C_NEW_STREAM_BIDI(a, ANY_ID),
- OP_C_WRITE(a, "bar", 3),
- OP_C_CONCLUDE(a),
-
- OP_S_ACCEPT_STREAM_WAIT(b),
- OP_S_READ_EXPECT(b, "bar", 3),
- OP_S_EXPECT_FIN(b),
-
- /* Drain the queue of incoming streams. */
- OP_BEGIN_REPEAT(200),
-
- OP_C_ACCEPT_STREAM_WAIT(b),
- OP_C_READ_EXPECT(b, "foo", 3),
- OP_C_EXPECT_FIN(b),
- OP_C_FREE_STREAM(b),
-
- OP_END_REPEAT(),
-
+ /* test moved to test/radix/quic_tests.c */
OP_END
};
diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
index c8026ce7c33..350d7635247 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -1308,8 +1308,41 @@ DEF_SCRIPT(script_15, "Client sending large number of streams, MAX_STREAMS test"
}
}
-DEF_SCRIPT(script_16, "place holder for multistrem script_16")
+/* 16. Server sending large number of streams, MAX_STREAMS test */
+DEF_SCRIPT(script_16, "Server sending large number of streams, MAX_STREAMS test")
{
+ size_t i;
+
+ OP_SIMPLE_PAIR_CONN_ND();
+ OP_ACCEPT_CONN_WAIT_ND(L, S, 0);
+
+ /*
+ * This will cause a protocol violation to be raised by the client if we are
+ * not handling the stream limit correctly on the TX side.
+ */
+ for (i = 0; i < 200; ++i) {
+ OP_NEW_STREAM(S, Sa, SSL_STREAM_FLAG_ADVANCE);
+ OP_WRITE(Sa, "foo", 3);
+ OP_CONCLUDE(Sa);
+ OP_UNBIND(Sa);
+ }
+
+ /* Prove that the connection is still good. */
+ OP_NEW_STREAM(C, Ca, 0);
+ OP_WRITE(Ca, "bar", 3);
+ OP_CONCLUDE(Ca);
+
+ OP_ACCEPT_STREAM_WAIT(S, Sb, 0);
+ OP_READ_EXPECT(Sb, "bar", 3);
+ OP_EXPECT_FIN(Sb);
+
+ /* Drain the queue of incoming streams. */
+ for (i = 0; i < 200; ++i) {
+ OP_ACCEPT_STREAM_WAIT(C, Cb, 0);
+ OP_READ_EXPECT(Cb, "foo", 3);
+ OP_EXPECT_FIN(Cb);
+ OP_UNBIND(Cb);
+ }
}
DEF_SCRIPT(script_17, "place holder for multistrem script_17")