Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in mtu_probeify_packet() #242

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

jthomas43
Copy link
Contributor

Disable MTU probing if the OS-Discovered pMTU (returned from getsockopt(socket, IP_MTU, ) is less than UDX_MTU_BASE (1200 bytes). This is a temporary fix to prevent the assert in mtu_probeify_packet() from triggering a crash when generating a probe to these hosts. It doesn't actually lower libudx's initial MTU below 1200, so if this OS-Discovered pMTU is correct these hosts will typically time out.

…makes the assert in mtu_probeify more strict
@mafintosh mafintosh merged commit de408f4 into holepunchto:main Jan 16, 2025
3 checks passed
@jthomas43 jthomas43 deleted the probeify-assert-fix branch January 16, 2025 12:03
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