-
Notifications
You must be signed in to change notification settings - Fork 267
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
Persistent Memory and Disk leak #288
Comments
OK, so deploying behind nginx/haproxy/... is expected. But yes, OK, very happy to look at suggestions for improving clean up here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Daphne does not seem to clean up after incomplete HTTP POST requests.
Back story: Twisted handles POST requests by saving the body to either the disk or memory, depending on the expected Content-Length. Normally this would be cleaned up when the request is finished. This cleanup does not seem to happen in Daphne.
Memory leak:
Disk leak:
My suggestion is to fix the bug and recommend not exposing a Twisted Web server directly to the internet. Even the default Twisted Web can be taken down with something like this although it requires a bit more persistence.
Side-note: I'm not sure what http_timeout does....
The text was updated successfully, but these errors were encountered: