Summary
The async queue in \ has no maximum size, which can lead to unbounded memory growth if consumer is slower than producer.
Location
Problem
The queue is created without a maxsize, meaning it can grow indefinitely if:
- The async consumer is slow to process data
- User code doesn't call \ or iterate fast enough
Impact
- Memory can grow unboundedly in long-running capture sessions
- No backpressure mechanism to signal producer to slow down
- Potential OOM errors in constrained environments
Comparison with other backends
Linux backend correctly sets a bounded queue:
\
Suggested Fix
Add a reasonable maxsize to the queue:
\
Labels
performance, bug