libuhttpd icon indicating copy to clipboard operation
libuhttpd copied to clipboard

可否支持Graceful exit

Open heguangyu5 opened this issue 1 year ago • 0 comments

当接收到signal时,在callback里先free掉listeners,这样不会有新请求进来. 然后等待ev_run()处理完所有event后返回. 再释放其它资源,然后退出. 类似 libevent 的 evhttp_del_accept_socket()

heguangyu5 avatar Oct 29 '24 00:10 heguangyu5