
The tun_listener spawns a new task for every incoming packet. This "spawn-per-packet" model can be inefficient and lead to resource exhaustion under high packet load due to scheduler overhead and memory consumption. Consider using a bounded worker pool to limit concurrency.
Originally posted by @gemini-code-assist[bot] in #7 (comment)
The
tun_listenerspawns a new task for every incoming packet. This "spawn-per-packet" model can be inefficient and lead to resource exhaustion under high packet load due to scheduler overhead and memory consumption. Consider using a bounded worker pool to limit concurrency.Originally posted by @gemini-code-assist[bot] in #7 (comment)