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
add a ConnContext to the quic.Config, remove it from the http3.Server #4422
Comments
I'm actually not sure how we'd implement this. Currently, we use the stream context: Lines 546 to 555 in da410a7
This seems to be the right thing to do, because the request is inherently bound to the stream. If we want to implement this change, we'd need a context that derives from both the stream and the connection, which is not possible. Any ideas @mattrobenolt? |
Yeah, I'd suspect that's correct. You'd want one originating at the Connection itself, each Stream derives from that. Not speaking about logistic for the implementation, but conceptually that's my expectation. Connection -> Stream -> Request Context is "forked" at each of those. Each Stream inherits from the Connection, and each Request inherits from the Stream. Am I right in that each Stream is 1 HTTP3 request? Or can one Stream handle multiple HTTP3 requests? |
The problem here is that we're dealing with the HTTP/3 layer, but streams are opened on the QUIC layer. Maybe that's the solution: We should add a Unfortunately, this is a much bigger change, and we might want to implement #3862 first (but maybe not strictly necessary?). |
I would agree, it would naturally be a better hook on the quic layer. I'm curious how this will translate over to |
Thinking about this more, I don't think this is even necessary. The API will be more useful, but it's pretty much orthogonal to this issue.
Oh well, nothing we have to worry about here :) |
A simple way to implement the original idea would be to use
Then in
Arguably, the other values could also be set in handleConn. |
Nevermind. My suggestion won't work. The only way this can work is if the stream ctx is tied to the conn ctx. |
As pointed out by @mattrobenolt in #4230 (comment),
ConnContext
should only be called once after the QUIC connection has been accepted.Currently blocked on the http3 refactor for #3522.
The text was updated successfully, but these errors were encountered: