F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.87k stars 899 forks source link

Add ff_stop_run to stop the poll loop #812

Closed renzibei closed 7 months ago

renzibei commented 7 months ago

Support stop the infinite loop, as raised in the issue https://github.com/F-Stack/f-stack/issues/719. There may exist some memory leaks if stop and restart the ff_run multiple times. It will be great if someone who are familiar with the memory allocation in f-stack can point this out. In the current test, the memory leak problem is minor with hundreds of stop and restart.