Slightly less simple, but still better.

Fixed bug in recent rate limiting change. Only input rate was working.
Buffer was allowed to accumulate far beyond amount required to emit
configured packet(s). Both limits are properly considered now.