Commit 977d1d1602 for openssl.org
commit 977d1d16024a591cd88d00fa7ab65ef0c271df9e
Author: Jakub Zelenka <jakub.zelenka@openssl.foundation>
Date: Thu Aug 27 17:39:26 2026 +0200
quic-radix: add thread-assisted stream reset test
Cover stream reset handling on a thread-assisted client in both
directions: the client resets a stream it initiated and the server
observes SSL_STREAM_STATE_RESET_REMOTE with the application error code,
then the server resets one of its streams and the client accepts it and
observes the same. Reuses the check_stream_reset_5 verifier.
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 30fa50d391..c027f2254b 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -1583,6 +1583,31 @@ DEF_SCRIPT(check_thread_assisted_close_remote,
OP_EXPECT_CONN_CLOSE_INFO(C, 42, 1, 1);
}
+/* Stream reset sent and received by a thread-assisted client. */
+DEF_SCRIPT(check_thread_assisted_stream_reset,
+ "thread-assisted client sends and receives a stream reset")
+{
+ 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 reset observed by the server */
+ OP_NEW_STREAM(C, Ca, 0 /* bidirectional */);
+ OP_WRITE_B(Ca, "raspberry");
+ OP_STREAM_RESET(Ca, 42);
+ OP_ACCEPT_STREAM_WAIT(Sa, Ss, 0);
+ OP_SELECT_SSL(0, Ss);
+ OP_FUNC(check_stream_reset_5);
+
+ /* Server-initiated reset observed by the client */
+ OP_NEW_STREAM(Sa, Sb, 0 /* bidirectional */);
+ OP_WRITE_B(Sb, "elderberry");
+ OP_STREAM_RESET(Sb, 42);
+ OP_ACCEPT_STREAM_WAIT(C, Cb, 0);
+ OP_SELECT_SSL(0, Cb);
+ OP_FUNC(check_stream_reset_5);
+}
+
/* 5. Test stream reset functionality */
DEF_SCRIPT(script_5, "Test stream reset functionality")
{
@@ -6201,6 +6226,7 @@ static SCRIPT_INFO *const scripts[] = {
USE(check_thread_assisted_transfer),
USE(check_thread_assisted_close_local),
USE(check_thread_assisted_close_remote),
+ USE(check_thread_assisted_stream_reset),
USE(script_5),
USE(script_6),
USE(script_7),