Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Fix MTU detection #304

Merged
merged 1 commit into from
Sep 6, 2020
Merged

Fix MTU detection #304

merged 1 commit into from
Sep 6, 2020

Conversation

TillMueller
Copy link
Contributor

This pull request fixes the MTU detection's binary search. The values returned by the incoming MTU detection should now not be too large (e.g. an MTU of 1420 made the function return 1421 before).
Additionally, the outgoing MTU detection does not error out if it tries to send a packet that is too large, since this can happen during the binary search. Instead, the function handles a packet that could not be sent the same way as one where the response timed out.
This commit fixes #303 for the tests that I ran.

Copy link
Owner

@thestr4ng3r thestr4ng3r left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, I needed to take some time to review and test this in-depth. But looks good to me. Thanks!

@thestr4ng3r thestr4ng3r merged commit 8511a74 into thestr4ng3r:master Sep 6, 2020
cuza added a commit to cuza/chiaki that referenced this pull request Oct 18, 2020
* upstream/master:
  Version 1.3.0
  PS4 Firmware 8.0 Compatibility (Fix thestr4ng3r#328)
  Remove sdl2-static from alpine deps
  Fix MTU detection (Fix thestr4ng3r#303) (thestr4ng3r#304)
  Add F-Droid info to README.md (thestr4ng3r#308)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lowering MTU on PS4 and remote device causes black screen
2 participants