Skip to content

Conversation

@glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Mar 5, 2025

Motivation:

The 'testRawSocketBootstrap_withProtocolNegotiation' test times out when run in release mode. This is because 'IPHeaderRemoverHandler' removes the IPv4 headers as a side effect of an assertion. This means that the headers are only removed when compiled in debug mode.

Modifications:

Always remove the headers.

Result:

The test passes in release mode.

Motivation:

The 'testRawSocketBootstrap_withProtocolNegotiation' test times out when
run in release mode. This is because 'IPHeaderRemoverHandler' removes
the IPv4 headers as a side effect of an assertion. This means that the
headers are only removed when compiled in debug mode.

Modifications:

Always remove the headers.

Result:

The test passes in release mode.
@glbrntt glbrntt added the semver/none No version bump required. label Mar 5, 2025
@glbrntt glbrntt requested a review from Lukasa March 5, 2025 17:31
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Good catch!

@Lukasa Lukasa enabled auto-merge (squash) March 5, 2025 17:31
@glbrntt
Copy link
Contributor Author

glbrntt commented Mar 5, 2025

Suspect CI will fail for the unsafe issue in nightly. I verified this locally with by temporarily renaming the unsafe variables.

@Lukasa Lukasa merged commit 4f2d42f into apple:main Mar 5, 2025
31 of 35 checks passed
@glbrntt glbrntt deleted the remove-side-effect-from-assert branch March 5, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants