relay: Batch forwarded packets on the relay host

This commit is contained in:
Ryan Huber committed 2026-10-17 18:53:36 +00:00
1 parent cda3710d5a
commit d3e21a8fc8
7 files changed
+398 -10

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ type batchWriter interface {
}
// SendBatch accumulates encrypted UDP packets and flushes them via WriteBatch.
// One SendBatch is owned by each listenIn goroutine; no locking is needed.
// Slots are backed by an Arena (see its docs)
// Each reader goroutine owns its own SendBatch; no locking is needed.
// Slots can borrow receive buffers or be backed by an Arena (see its docs).
type SendBatch struct {
out batchWriter
bufs [][]byte