eclipse-leshan / leshan

Java Library for LWM2M
https://www.eclipse.org/leshan/
BSD 3-Clause "New" or "Revised" License
647 stars 407 forks source link

Removing presenceService.isClientAwake(destination) check #1643

Closed mattemyoo closed 1 week ago

mattemyoo commented 3 weeks ago

Question

Hello. Is there any risk of messing anything up if we were to disable for example these lines?:

https://github.com/eclipse-leshan/leshan/blob/583807b38d249350af3f390c219b4193cf770594/leshan-lwm2m-server/src/main/java/org/eclipse/leshan/server/queue/QueueModeLwM2mRequestSender.java#L65-L68

The reason is that we would like to still try to send a request to our device even though it is considered asleep.

sbernard31 commented 3 weeks ago

Is there any risk of messing anything up if we were to disable for example these lines?

I think it should be OK :thinking:

The reason is that we would like to still try to send a request to our device even though it is considered asleep.

Are you using the PresenceService or you don't use it at all ?

sbernard31 commented 2 weeks ago

(let me know when we can close this issue)

mattemyoo commented 1 week ago

Yes we are using PresenceService. It seems like 93s without a response, we the sleep event is triggered, right?

Anyway, you can close this issue now. We discovered the max timeout flag and did some more digging into the code.