Simplify staged receive batch recycling

This commit is contained in:
JackDoan committed 2026-10-15 17:23:45 -05:00
1 parent 5bba4de3c6
commit 556b457389
3 files changed
+62 -109

No files matched your search

+1 -1
View File
@@ -426,7 +426,7 @@ func (f *Interface) listenOut(i int) {
var err error
if hc, ok := li.(handoffConn); ok && f.staged.workers > 0 {
// Every stage on its own goroutine, see flow_rx.go. rxc becomes the ordered writer's context.
err = newStagedRx(f, i, rxc).listen(hc)
err = newStagedRx(f, i, rxc, hc).listen()
} else {
if f.staged.workers > 0 {
f.l.Info("udp conn cannot hand off receive batches, receive stays inline", "reader", i)