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

Unexpected RST message with observations when first response use block2. #623

Closed
sbernard31 opened this issue Dec 3, 2018 · 0 comments
Closed
Labels
bug Dysfunctionnal behavior server Impact LWM2M server

Comments

@sbernard31
Copy link
Contributor

When you send an observation request, if the device answer to the request with block1, after "response timeout" milliseconds the observation will be canceled and device will received RST message for the next notification.

The issue seems to be about CoapAsyncRequestObserver.

A task to clean request in case we never get a response is create on onReadyToSend.
But if transparent block2 is used for the response of the observe request, this method is called for each block2 request and so if there is n block we will create n task. But the current code expect there is only 1 task and when response is received we cancel only 1 task. So the n-1 others tasks will cancel the request and so remove the observation.

I will prepare a fix about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Dysfunctionnal behavior server Impact LWM2M server
Projects
None yet
Development

No branches or pull requests

1 participant