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

Include connection IDs in serialized state #573

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

hasheddan
Copy link
Contributor

Description

Updates state serialization and deserialization to include connection
IDs if they were negotiated.

Signed-off-by: Daniel Mangum [email protected]

Updates the flight0handler to clear connection IDs in the event the
client is attempting to resume an existing session. If connection IDs
are to be used in the resumed session, they should be negotiated afresh.

https://datatracker.ietf.org/doc/html/rfc9146#name-the-connection_id-extension

Signed-off-by: Daniel Mangum [email protected]

Updates state serialization and deserialization to include connection
IDs if they were negotiated.

Signed-off-by: Daniel Mangum <[email protected]>
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03% 🎉

Comparison is base (37fbc04) 77.49% compared to head (978b317) 77.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #573      +/-   ##
==========================================
+ Coverage   77.49%   77.53%   +0.03%     
==========================================
  Files         101      101              
  Lines        6420     6431      +11     
==========================================
+ Hits         4975     4986      +11     
  Misses       1067     1067              
  Partials      378      378              
Flag Coverage Δ
go 77.55% <100.00%> (+0.03%) ⬆️
wasm 62.97% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
flight0handler.go 81.08% <100.00%> (+0.52%) ⬆️
state.go 91.47% <100.00%> (+0.56%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Updates the flight0handler to clear connection IDs in the event the
client is attempting to resume an existing session. If connection IDs
are to be used in the resumed session, they should be negotiated afresh.

https://datatracker.ietf.org/doc/html/rfc9146#section-3

Signed-off-by: Daniel Mangum <[email protected]>
Copy link
Contributor Author

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example of using this functionality demonstrated in plgd-dev/go-coap#473

@hasheddan hasheddan merged commit 609e5be into pion:master Aug 28, 2023
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