-
Notifications
You must be signed in to change notification settings - Fork 26
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
Upgrade daphne-server to http 1 #719
Conversation
3072f17
to
2800ab7
Compare
9572f3e
to
7f43f65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two nits only
@@ -177,7 +175,7 @@ where | |||
|
|||
// TODO(mendess): this allocates needlessly, if prio supported some kind of | |||
// AsyncParameterizedDecode we could avoid this allocation | |||
let payload = hyper::body::to_bytes(body).await; | |||
let payload = axum::body::to_bytes(body, usize::MAX).await; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may want to only accept a certain amount of bytes based on the payload we are expecting. currently this is not supported, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm gonna open an issue. The previous implementation didn't allow limiting this so I kept it "the same" but we should investigate if we can deduce a sane limit we can put here
6c1d3d8
to
2596cf6
Compare
ffea5c1
to
20895c3
Compare
Upgrades to http 1 and axum 0.7, which is a breaking change but for us means a simplification of the code as we no longer have to care about the Body of a request, it is now
axum::body::Body
instead of being generic.