californium.core icon indicating copy to clipboard operation
californium.core copied to clipboard

Send Reset Message to unexpected non-confirmable message

Open sbernard31 opened this issue 11 years ago • 2 comments

When using coap observe, server send notification in a confirmable or non confirmable way. To stop the observation client should respond with a reset message. But Reset messages are transmitted unreliably, the client must be prepared that its Reset messages aren't received by the server. (draft-ietf-core-observe)

Maybe client should always send a Reset Message to unexpected non-confirmable message.

I'm not sure but It seems that's what you try to do here. But sendEmptyMessage seems to not send any RST message and exchange is always null.

(linked to leshan issue)

sbernard31 avatar Sep 12 '14 15:09 sbernard31

in 3.5 section : In the case of a non-confirmable notification, rejecting the message with a Reset message is OPTIONAL.

Optional but probably better :).

sbernard31 avatar Sep 18 '14 16:09 sbernard31

Yes, the idea is to send the RST there, but something goes wrong. I will look into this.

Thanks Matthias

mkovatsc avatar Sep 18 '14 17:09 mkovatsc