-
Notifications
You must be signed in to change notification settings - Fork 408
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
Leshan sever sending ClientSleepException exactly after 93 seconds of Registration. #712
Comments
You mean you are using separated response, right ? If I'm right, currently it's the expected behavior (I mean this is why we try to code), we are waiting for a response (piggyback or separated).
and
Anyway, even If (I think) we respect the specification, I agree that it could make sense to reinitialize the counter on ACK, but unfortunately this is not so easy because of the current code organization... So, before to consider a massive code changes, I would like to understand to which kind of real usecase this is about ?
|
Yes, this issue is with real device and receiving the piggybacked response for every down link(Write request) . Application is sending a downlink request for every 60s and receiving the response from device . Even after receiving piggybacked response the awake timer of client is not getting refreshed . |
Ok so if this is a piggybacked response this looks like a bug. I will look at this deeper. |
I created a PR which should fix this : #714 Could you check if this works for you ? |
Sure . I will check and let you know. |
I checked . Its working . Thank you for the fix. I found one more issue . Leshan is considering 93 seconds as default sleeping time . This should be from MAX_TRANSMIT_WAIT=247500 from Californium.properties right? |
You want synchronized the Leshan wait time with the californium.properties value ? I will look at this. |
@madhushreegc could you review/test if #716 sounds OK for you ?
It seems the default value in californium is 93s too as defined in the RFC7252. |
#716 is now integrated in master. |
Leshan versio - leshan-1.0.0-M10
Leshan server is not resetting the state of client after receiving a response from device for a downlink message for a queue mode device.
Even though the LWM2M client is not sleeping , Leshan is throwing ClientSleepingException .
setAwake is called only for Update/register request.
Procedure to reproduce issue.
The text was updated successfully, but these errors were encountered: