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

fix block-wise response token #31

Merged

Conversation

JcBernack
Copy link
Contributor

@JcBernack JcBernack commented Aug 10, 2023

Do not reuse token from the original request, always use the token from the current request.

The CoAP specs for block-wise transfer don't specify anything regarding the use of the token. Reusing the token from the original request is non-standard and can break clients.

See RFC 7959 page 27:

As a general comment on tokens, there is no other mention of tokens in this document, as block-wise transfers handle tokens like any other CoAP exchange. As usual, the client is free to choose tokens for each exchange as it likes.

do not reuse token from the original request, always use the token from the current request

(cherry picked from commit 3f62355)
@martindisch
Copy link
Owner

Thanks for reporting and fixing, will push it in 0.11.3 right away.

@martindisch martindisch merged commit 951e489 into martindisch:main Aug 12, 2023
@JcBernack JcBernack deleted the fix-block-wise-response-token branch August 17, 2023 16:15
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.

None yet

2 participants