This repository was archived by the owner on Sep 11, 2026. It is now read-only.
Repository navigation
Convert UDP stress test from echo to one-way - #402
Merged
Merged
Conversation
The echo design overloaded the server's receive buffer at even modest volumes — UDP provides no receiver-side backpressure, so every dropped datagram was a silent false failure. The one-way design sends client→server only and reports results via actor messaging, which eliminates the echo path and halves the UDP traffic. The server now verifies each datagram's payload against a per-client keystream (4-byte header: 1 byte client id + 3 bytes sequence number), catching corruption the echo design would have detected. The conservation check (client_sent == server_received) stays, at volumes low enough that the receiver's kernel buffer never overflows — a conservation failure at these volumes is a lori event-delivery bug. Volume limits are sharply reduced (RUN_MAX_ROUND_TRIPS 500K→10K, RUN_MAX_BYTES 2GB→50MB, clients max 32→4, datagram buckets ~5x smaller) so the test budget goes to breadth of configurations rather than raw volume per run. CI schedule moves from once daily to 3x/day.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The echo design overloaded the server's receive buffer at even modest volumes — UDP provides no receiver-side backpressure, so every dropped datagram was a silent false failure. All three CI platforms failed on the first run.
This converts the stress test to one-way (client→server only). Results come back via actor messaging instead of UDP echo.
Engine changes:
Volume reduction:
RUN_MAX_ROUND_TRIPS500K → 10KRUN_MAX_BYTES2GB → 50MBThe test budget goes to breadth of configurations rather than raw volume per run.
CI: Once daily → 3x/day (0:00, 8:00, 16:00 UTC).