mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 08:16:52 +01:00
udp: Fold buffer handoff into ListenOut
This commit is contained in:
1 parent
1fb77bdda5
commit
06035252b2
12 files changed
+45
-60
No files matched your search
+4
-1
@@ -418,7 +418,10 @@ func (f *Interface) listenOut(i int) {
|
||||
f.readOutsidePackets(ViaSender{UdpAddr: fromUdpAddr}, payload, rxc)
|
||||
}
|
||||
|
||||
flusher := func() { f.flushOutside(rxc) }
|
||||
flusher := func(bufs [][]byte) [][]byte {
|
||||
f.flushOutside(rxc)
|
||||
return bufs
|
||||
}
|
||||
|
||||
var err error
|
||||
if hc, ok := li.(handoffConn); ok && f.staged.workers > 0 {
|
||||
|
||||
Reference in new issue
Block a user