Request buffering performance note in docs

The docs mention to avoid request buffering if possible due to performance reasons, per JSON Config Structure - Caddy Documentation

I am planning to use this option to protect Gunicorn from slow clients per Deploying Gunicorn — Gunicorn 20.1.0 documentation

If you choose another proxy server you need to make sure that it buffers slow clients when you use default Gunicorn workers. Without this buffering Gunicorn will be easily susceptible to denial-of-service attacks.

Does Caddy implement request buffering in a way such that it is a viable solution for this problem?

Yep, in fact gunicorn is the reason we implemented that functionality: caddy/reverseproxy.go at 105acfa08664c97460a6fe3fb49635618be5bcb2 · caddyserver/caddy · GitHub

This topic was automatically closed after 180 days. New replies are no longer allowed.