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

Return ephemeral headers in FOUNDCONTENT #744

Merged
merged 13 commits into from
Mar 1, 2025

Conversation

acolytec3
Copy link
Collaborator

@acolytec3 acolytec3 commented Feb 28, 2025

This continues work on #741

  • Returns ephemeral headers in FOUNDCONTENT messages
  • Adds a new BiMap class for the ephemeral headers index
  • Cleans up some typing related to Ephemeral Headers
  • Adds new integration tests covering transmission of Ephemeral Headers with FINDCONTENT/CONTENT messages

Copy link
Collaborator

@ScottyPoi ScottyPoi left a comment

Choose a reason for hiding this comment

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

LGTM - Approved with some comments

@@ -34,7 +34,7 @@ export const MICROSECOND_WAIT_BETWEEN_BURSTS: number = 28000
export const TIME_WAIT_AFTER_LAST_PACKET: number = 3000000
export const ONLY_POSITIVE_GAIN: boolean = false
export const DEBUG: boolean = false
export const MAX_UTP_PACKET_LENGTH = MAX_PACKET_SIZE
export const MAX_UTP_PACKET_LENGTH = MAX_UDP_PACKET_SIZE
Copy link
Collaborator

Choose a reason for hiding this comment

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

This feels wrong, or useless. I assume we meant to limit the size of the UTP packet to the max size of a UDP payload -- which would be something like MAX_UDP_PACKET_SIZE - MAX_UDP_HEADER_LENGTH

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, you're right 🤦 It should be MAX_UDP_PACKET_SIZE - TALKREQOVERHEAD - utp packet metadata. Let me shamelessly rip that from fluffy too since they already worked out the math.

@acolytec3 acolytec3 merged commit 3d98688 into master Mar 1, 2025
4 checks passed
@acolytec3 acolytec3 deleted the findContent-for-ephemeral-headers branch March 1, 2025 03:26
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