netsampler / goflow2

High performance sFlow/IPFIX/NetFlow Collector
BSD 3-Clause "New" or "Revised" License
487 stars 112 forks source link

goflow2: zero queue_size means blocking #273

Closed lspgn closed 3 months ago

lspgn commented 10 months ago

When queue size is zero, automatically set to blocking mode.

lspgn commented 3 months ago

After verification, I don't think this is necessary since a non-blocking queue can have a zero size. The only difference is that the first packet is kept in memory when in blocking mode. Non-blocking with zero queue is full real-time. With a queue size of 1, blocking can work on two "old" packets.