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 logging of MID matching. #761

Merged
merged 1 commit into from Oct 3, 2018

Conversation

boaks
Copy link
Contributor

@boaks boaks commented Sep 30, 2018

Recreated request from observation stores may not have a valid MID.

Signed-off-by: Achim Kraus achim.kraus@bosch-si.com

@boaks boaks force-pushed the fix_cluster_notify branch 2 times, most recently from d3bddba to baeaf81 Compare October 1, 2018 10:52
@boaks
Copy link
Contributor Author

boaks commented Oct 1, 2018

Intended for issue #668

@boaks boaks force-pushed the fix_cluster_notify branch 2 times, most recently from 9cd768e to e9cdd8b Compare October 2, 2018 14:34
Copy link
Contributor

@sbernard31 sbernard31 left a comment

Choose a reason for hiding this comment

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

It sounds OK.

@@ -112,6 +112,7 @@ public void sendRequest(final Exchange exchange) {
// for observe request.
Request request = exchange.getCurrentRequest();
if (request.isObserve() && 0 == exchange.getFailedTransmissionCount()) {
exchangeStore.assignMessageId(request);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we handle the case where assignMessageId returns Message.NONE ?

Signed-off-by: Achim Kraus <achim.kraus@bosch-si.com>
@boaks
Copy link
Contributor Author

boaks commented Oct 2, 2018

Check for exhausted MID added.

@sbernard31
Copy link
Contributor

👍

@boaks boaks merged commit 35cc5a6 into eclipse-californium:2.0.x Oct 3, 2018
@boaks
Copy link
Contributor Author

boaks commented Oct 3, 2018

So in some time in the future, we hopefully will see, what caused the warning of #668. :-)

@boaks boaks deleted the fix_cluster_notify branch November 23, 2018 15:57
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