-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
This continues work on #741
BiMap
class for the ephemeral headers index