-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
udp_proxy: scaffolding #8883
udp_proxy: scaffolding #8883
Conversation
This is the first commit in a series to support UDP proxying. There are quite a few TODOs in the code before this feature will be considered a MVP. Part of #492 Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
/retest |
🔨 rebuilding |
Signed-off-by: Matt Klein <[email protected]>
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. Seems like a good foundation.
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
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.
Nice stuff! Sorry for the delayed review.
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
@danzh2010 updated per comments |
/retest |
🔨 rebuilding |
Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: Matt Klein <[email protected]>
ENVOY_LOG_MISC( | ||
debug, "Kernel dropped {} more packets. Consider increase receive buffer size.", delta); | ||
} | ||
} while (true); |
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.
@mattklein123 this loop runs until we run out of packets; do you think we should have some bound on the loop to ensure fairness across epoll events? This may be a possible DoS vector once UDP becomes a thing.
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.
Yes @danzh2010 and I have already discussed thi and there are various TODOs in the code. Someone will be doing this as a follow up once the main support for UDP and QUIC merges.
This is the first commit in a series to support UDP proxying.
There are quite a few TODOs in the code before this feature
will be considered a MVP.
Part of #492
Risk Level: Low (some changes to core UDP processing code
which is not heavily used)
Testing: Integration test
Docs Changes: N/A
Release Notes: N/A