django / django/daphne

Are there max requests settings for Daphne?

Open
#403 11 comments 2 reactions 0 assignees View on GitHub
enhancement exp/beginner
Dominant language
Python
Stars
2.7k
Forks
292
Avg merge
2d 15h
Merged PRs (30d)
3

Description

I have this ASGI applicate with Django and Daphne, and I'm using the following command.

`daphne -b 0.0.0.0 -p $PORT server.asgi:application`

Is there a way to add `--max-requests` and `--max-requests-jitter` to actively prevent memory leaks?

Maybe something like:
`daphne -b 0.0.0.0 -p $PORT --max-requests 1000 --max-requests-jitter 50 server.asgi:application`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.