programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
174 stars 60 forks source link

Memory leak in server #13

Closed andrewhickman closed 3 years ago

andrewhickman commented 3 years ago

Hi, I was reading through the code and I noticed this list of connections

https://github.com/programatik29/axum-server/blob/8574eaa2717803949877e8b00a26ea6a6f9604d9/src/server/http_server.rs#L116

it seems to grow every time the server accepts a connection and is never cleared out, so it might be an issue for a long-running server

I tried making lots of requests to the hello_world example server and after ~500,000 requests memory usage was about 1 GB

programatik29 commented 3 years ago

I will fix that today.