Commit 88c72f07b7 for openssl.org
commit 88c72f07b74fe23e4ec508363bc011d513c5c9b5
Author: Jakub Zelenka <jakub.zelenka@openssl.foundation>
Date: Thu Aug 27 17:39:47 2026 +0200
quic-radix: add thread-assisted explicit stream test
The QUIC_TSERVER-based test only ever exercised the default stream on a
thread-assisted client. Cover SSL_stream_new() and SSL_accept_stream()
too: a client-initiated bidirectional stream carries data with a
conclude/EOS in each direction, then a server-initiated stream is
accepted by the client and carries data both ways.
Assisted-by: Claude:claude-fable-5
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Merge-date: Mon Nov 16 17:41:42 2026
Merged-from: https://github.com/openssl/openssl/pull/32550
diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
index c027f2254b..2564bd9185 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -1608,6 +1608,35 @@ DEF_SCRIPT(check_thread_assisted_stream_reset,
OP_FUNC(check_stream_reset_5);
}
+/* Explicitly created and accepted streams on a thread-assisted client. */
+DEF_SCRIPT(check_thread_assisted_streams,
+ "thread-assisted client with explicitly created/accepted streams")
+{
+ OP_SIMPLE_PAIR_CONN_TA();
+ OP_SET_DEFAULT_STREAM_MODE(C, SSL_DEFAULT_STREAM_MODE_NONE);
+ OP_ACCEPT_CONN_WAIT(L, Sa, 0);
+
+ /* Client-initiated stream accepted by the server */
+ OP_NEW_STREAM(C, Ca, 0 /* bidirectional */);
+ OP_WRITE_B(Ca, "raspberry");
+ OP_CONCLUDE(Ca);
+ OP_ACCEPT_STREAM_WAIT(Sa, Ss, 0);
+ OP_READ_EXPECT_B(Ss, "raspberry");
+ OP_EXPECT_FIN(Ss);
+ OP_WRITE_B(Ss, "elderberry");
+ OP_CONCLUDE(Ss);
+ OP_READ_EXPECT_B(Ca, "elderberry");
+ OP_EXPECT_FIN(Ca);
+
+ /* Server-initiated stream accepted by the client */
+ OP_NEW_STREAM(Sa, Sb, 0 /* bidirectional */);
+ OP_WRITE_B(Sb, "cranberry");
+ OP_ACCEPT_STREAM_WAIT(C, Cb, 0);
+ OP_READ_EXPECT_B(Cb, "cranberry");
+ OP_WRITE_B(Cb, "blueberry");
+ OP_READ_EXPECT_B(Sb, "blueberry");
+}
+
/* 5. Test stream reset functionality */
DEF_SCRIPT(script_5, "Test stream reset functionality")
{
@@ -6227,6 +6256,7 @@ static SCRIPT_INFO *const scripts[] = {
USE(check_thread_assisted_close_local),
USE(check_thread_assisted_close_remote),
USE(check_thread_assisted_stream_reset),
+ USE(check_thread_assisted_streams),
USE(script_5),
USE(script_6),
USE(script_7),