Skip to content

Commit

Permalink
Decompose stream context verification
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Dec 17, 2023
1 parent c41e8c5 commit 7bde821
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions picoquictest/edge_cases.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,11 +958,15 @@ int reset_loop_wait_stream_opened(picoquic_test_tls_api_ctx_t* test_ctx,
TEST_SERVER_READY &&
nb_inactive < 64 &&
ret == 0) {
picoquic_stream_head_t* c_stream = picoquic_find_stream(test_ctx->cnx_client, data_stream_id);
picoquic_stream_head_t* s_stream = picoquic_find_stream(test_ctx->cnx_server, data_stream_id);
if (c_stream != NULL && c_stream->sent_offset > 10000 && s_stream != NULL) {
is_opened = 1;
break;
if (test_ctx->cnx_client != NULL && test_ctx->cnx_server != NULL) {
picoquic_stream_head_t* c_stream = picoquic_find_stream(test_ctx->cnx_client, data_stream_id);
if (c_stream != NULL && c_stream->sent_offset > 10000) {
picoquic_stream_head_t* s_stream = picoquic_find_stream(test_ctx->cnx_server, data_stream_id);
if (s_stream != NULL) {
is_opened = 1;
break;
}
}
}
was_active = 0;

Expand Down

0 comments on commit 7bde821

Please sign in to comment.