Skip to content
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

feat: Remove Request.id from the protocol #782

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

flub
Copy link
Contributor

@flub flub commented Feb 22, 2023

Since we now only issue a single request per stream this field was not
used. Using it in the provider to identify requests would introduce
complexity and overhead for the bookkeeping of request IDs. Instead
remove the field from the protocol.

The provider still has a use-case for identifying which request events
relate to. It now uses the QUIC stream ID for this, but does not
promise so on an API-level. This also simplifies the events since
this new request_id is always known, while previously it was only
known after having decoded the request message.

Since we now only issue a single request per stream this field was not
used.  Using it in the provider to identify requests would introduce
complexity and overhead for the bookkeeping of request IDs.  Instead
remove the field from the protocol.

The provider still has a use-case for identifying which request events
relate to.  It now uses the QUIC stream ID for this, but does not
promise so on an API-level.  This also simplifies the events since
this new request_id is always known, while previously it was only
known after having decoded the request message.
@dignifiedquire dignifiedquire merged commit fd37cab into main Feb 22, 2023
@dignifiedquire dignifiedquire deleted the flub/proto-request-id branch February 22, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants