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

Rework the Contiki network address cache #307

Merged
merged 2 commits into from Dec 22, 2016

Conversation

mtusnio
Copy link
Contributor

@mtusnio mtusnio commented Dec 16, 2016

@cheekyhalf This uses one of the fixes from your patch, lines 254-257. Otherwise it fails to bootstrap

The whole cache has been reworked to first parse the URI, then compare using Contiki implementation of network addresses. It compares them based on port & IP, and any URI comparison is gone at this point. This should solve the issue with cache overflowing when, for instance, doing observes which pass a slightly different URI to the application.

…esses

Signed-off-by: Michal Tusnio <m.tusnio@gmail.com>
@cheekyhalf
Copy link
Collaborator

@mtusnio you'll need the other line from the patch otherwise you'll end up with useCount=2 on the first call.

@mtusnio
Copy link
Contributor Author

mtusnio commented Dec 21, 2016

@cheekyhalf I don't have access to the patch at the moment, can you attach the diff with that line so that I can update the PR?

@cheekyhalf
Copy link
Collaborator

retest AWS CI (libcoap)

@cheekyhalf cheekyhalf merged commit 0bdaea6 into ConnectivityFoundry:master Dec 22, 2016
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