-
Notifications
You must be signed in to change notification settings - Fork 80
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(coap-server): ignore incoming requests with an invalid source port #1188
fix(coap-server): ignore incoming requests with an invalid source port #1188
Conversation
7756304
to
ec3f067
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1188 +/- ##
==========================================
- Coverage 76.66% 76.65% -0.02%
==========================================
Files 80 80
Lines 16813 16821 +8
Branches 1618 1619 +1
==========================================
+ Hits 12890 12894 +4
- Misses 3893 3897 +4
Partials 30 30 ☔ View full report in Codecov by Sentry. |
What happens to the ignored request? Do clients try to send another request? Also I'd add a followup issue to revert the change once it is solved in node-coap. |
If the request is confirmable, then clients will try to retransmit it until it has timed out. Usually, you could inform them that their request was unable to be processed by sending a reset message – but in this case, that is not possible as we would be running into the same problem again :/
That sounds good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go.
Created #1190 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a suggestion see below...
Since it is a temporary fix I am okay either way
Resolves #1182.
This is more like a workaround for now to fix the crashes immediately but should be fixed at the library level eventually.