Repository navigation
Implement UDP ingress - #8
Merged
Merged
Conversation
gabivlj
force-pushed
the
gv/CC-9428-udp-ingress
branch
from
November 18, 2026 15:32
4f7e5fd to
ba94836
Compare
|
We should set up clanky here |
A CONNECT on the ingress listener with X-Dst-Protocol: udp validates X-Dst-Addr like TCP, dials a connected udp4 socket and answers 200 exactly like TCP. Without the header the connection is TCP; any other value returns 400. After the 200 each datagram in either direction is a 2-byte big-endian length from 0 to 1500 followed by that many bytes. Frames toward the container above 1500 bytes are skipped and the flow stays open. A 0xFFFF frame (FLOW_END) from workerd is a protocol error that ends the flow; EOF or an error on either side also ends it. Tests cover request validation, the 200, the frame reader, round trips, early frames, oversize drops and skips, flow end and ICMP port unreachable. A Test workflow runs gofmt, go vet and go test -race on every push.
gabivlj
force-pushed
the
gv/CC-9428-udp-ingress
branch
from
November 18, 2026 16:47
ba94836 to
66bb7e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the work to make UDP ingress available in workerd and containers. Details of the protocol are in the README.
We do not have to add new iptables rules here.