Skip to content

Conversation

@julek-wolfssl
Copy link
Member

No description provided.

@julek-wolfssl julek-wolfssl self-assigned this Jan 7, 2026
@julek-wolfssl julek-wolfssl requested a review from rizlik January 7, 2026 12:33
@devin-ai-integration
Copy link
Contributor

🛟 Devin Lifeguard found 1 likely issues in this PR

  • use-proper-function-visibility snippet: Determine whether visibility requirements apply to code under tests/; if so, mark test_dtls13_min_rtx_interval() as static or prefix it with wolfssl_local_ and add the WOLFSSL_LOCAL modifier.

@julek-wolfssl
please take a look at the above issues which Devin flagged. Devin will not fix these issues automatically.

@julek-wolfssl
Copy link
Member Author

Retest this please RequestAbortedException

@julek-wolfssl julek-wolfssl assigned rizlik and unassigned julek-wolfssl Jan 8, 2026
Comment on lines +2543 to +2544
/* Save the message count to make sure no new messages are sent */
ExpectIntGE(c_msg_count = test_ctx.c_msg_count, 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: two instruction to make it more readable

test_memio_clear_buffer(&test_ctx, 1);

/* First timeout. This one should trigger a retransmission */
if (wolfSSL_dtls13_use_quick_timeout(ssl_s))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap the result of the wolfSSL_dtls13_use_quick_timeout in an Expect assert

#define DTLS13_MIN_CIPHERTEXT 16
#define DTLS13_MIN_RTX_INTERVAL 1
#ifndef DTLS13_MIN_RTX_INTERVAL
#define DTLS13_MIN_RTX_INTERVAL 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think of using DTLS_TIMEOUT_INIT as default here?

* wolfSSL_dtls_got_timeout() to simulate timeouts and verify that
* retransmissions are spaced at least DTLS13_MIN_RTX_INTERVAL apart.
*/
int test_dtls13_min_rtx_interval(void)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test relies on timing and may introduce flakiness. I don't see an easy way to test without timing dependency. If we want to keep it as it is, we need at least a clear comment about the risk imo.

@rizlik rizlik assigned julek-wolfssl and unassigned rizlik Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants