From 157afa0b5d325938d52c74b8d07e67b4d2f06c37 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 27 Mar 2015 11:15:25 +0000 Subject: [PATCH] comment --- router/forwarder.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/router/forwarder.go b/router/forwarder.go index ea418d2b..b067368d 100644 --- a/router/forwarder.go +++ b/router/forwarder.go @@ -303,6 +303,13 @@ func (fwd *Forwarder) attemptVerifyEffectivePMTU() { } } +// Drain the inbound channel of frames, aggregating them into larger +// packets for efficient transmission. +// +// FIXME Depending on the golang scheduler, and the rate at which +// franes get sent to the forwarder, we can be going around this loop +// forever. That is bad since there may be other stuff for us to do, +// i.e. the other branches in of the run loop. func (fwd *Forwarder) accumulateAndSendFrames() { for { select {