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

udp_proxy: scaffolding #8883

Merged
merged 14 commits into from
Nov 12, 2019
Merged

udp_proxy: scaffolding #8883

merged 14 commits into from
Nov 12, 2019

Conversation

mattklein123
Copy link
Member

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

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]>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #8883 was opened by mattklein123.

see: more, trace.

@mattklein123
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: coverage (failed build)

🐱

Caused by: a #8883 (comment) was created by @mattklein123.

see: more, trace.

goaway
goaway previously approved these changes Nov 7, 2019
Copy link
Contributor

@goaway goaway left a 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.

Copy link
Contributor

@danzh2010 danzh2010 left a 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.

@mattklein123
Copy link
Member Author

@danzh2010 updated per comments

@mattklein123
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: docs (failed build)

🐱

Caused by: a #8883 (comment) was created by @mattklein123.

see: more, trace.

danzh2010
danzh2010 previously approved these changes Nov 11, 2019
@mattklein123 mattklein123 merged commit 477fafd into master Nov 12, 2019
@mattklein123 mattklein123 deleted the udp_proxy branch November 12, 2019 00:26
ENVOY_LOG_MISC(
debug, "Kernel dropped {} more packets. Consider increase receive buffer size.", delta);
}
} while (true);
Copy link
Member

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.

Copy link
Member Author

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.

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.

4 participants