Closed ifduyue closed 5 years ago
Another possible pending_queue leak is in function failover_server at server.c https://github.com/UlricE/pen/blob/master/server.c#L241-L244 If conns[conn].state is CS_IN_PROGRESS, failover_server just closes upfd without dealing with pending_queue.
Hello,
When I was using pen as a proxy, after a while I noticed that pen stopped accepting new connections and stuck in a busy loop, and consumed a lot of CPU resource. Restarting pen solves this issue temporarily, after a while pen will get stuck and stop working again.
After some source code reading, I guess I've found a possible pending_queue leakage: