mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 11:46:52 +01:00
relay: Batch forwarded packets on the relay host
This commit is contained in:
1 parent
cda3710d5a
commit
d3e21a8fc8
7 files changed
+398
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user