Skip to content

DoS Attacks #349

Answered by jbr
448-OG asked this question in Q&A
Aug 2, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

This is a great question, and not one with a preexisting solution. I'm not at all sure if this is something trillium-http should handle internally, as it can potentially be handled in user code. In order to recommend a specific solution: How are you consuming the request body? Are you streaming it to disk or reading into memory?

Here's one possible solution for handling this outside of trillium:
https://gist.github.com/jbr/d92f3a4b139f64a2bac3903bdea54247

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by 448-OG
Comment options

You must be logged in to vote
3 replies
@jbr
Comment options

jbr Aug 3, 2023
Maintainer

@448-OG
Comment options

@jbr
Comment options

jbr Aug 4, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants