-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connections leaks in server #57
Comments
I investigated this a bit further, and the remaining connections handlers after wrk exists seems to be stuck in read. This is likely the issue described e.g. in Detection of Half-Open (Dropped) Connections, which explicitly mentions timeout as the solution for HTTP servers which support persistent connections. So, it's not a bug. For a production-ready server we would need a timeout. I don't know Async well, but Lwt this can be easily done by joining the handle thread with an |
Thanks for the report, Closing in favor of #86. |
While running benchmarks for #53, I noticed that there were connections left after wrk2 was done. I think the issue is in the generic httpaf code, since the async benchmark also reports remaining connections with the same test. Here is an example output from the benchmark:
My wrk2 command line for this was
Running multiple times, usually leaving more open connections, I can verify that the number of exceptions reported is always the same as the number of connections left.
The text was updated successfully, but these errors were encountered: