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

Server response with ACK to Empty CON (CoAP Ping) #486

Open
niondir opened this issue Oct 9, 2023 · 1 comment
Open

Server response with ACK to Empty CON (CoAP Ping) #486

niondir opened this issue Oct 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@niondir
Copy link
Collaborator

niondir commented Oct 9, 2023

Due to rfc7252:

the four message types can be used as in Table 1. "*" means that the combination is not used in normal operation but only to elicit a Reset message ("CoAP ping").

In clientconn.go I can observe that also an ACK is accepted as Ping response:

if r.Type() == message.Reset || r.Type() == message.Acknowledgement {

We did observe, that the server indeed sends back an ACK and not a Reset message when sending a CoAP Ping.

@niondir niondir changed the title Server response with ACK to Empty CON (CoAP Ping Server response with ACK to Empty CON (CoAP Ping) Oct 9, 2023
@Danielius1922 Danielius1922 added the bug Something isn't working label Oct 10, 2023
@jeffwelder-ellenbytech
Copy link
Contributor

@niondir
I'm actually using this "bug" to keep my observe connection alive with clients.

Client sends empty CON, server responds with ACK every couple minutes.

Is there a better way if this is intended to send a reset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants