-
Notifications
You must be signed in to change notification settings - Fork 364
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
Setting DTLS session timeout #1834
Comments
As far as I understand your requirement, you want to ensure, that a session last at least for 24h? Or do you want to have a session last for a maximum of 24h?
|
OK, I see. My main point was that DTLS session should last at least 24h to reduce the number of handshakes (to preserve device batteries). In general devices will connect only once per day to send registration update. BR, Sonny |
Do you use DTLS CID? If not, you will need (resumption) handshakes, if your ip-adresses are changing.
The point will be, how Scandium knows, that "this handshake" replaces an "existing connection"?
Sure, a new connection requires a handshake. And using CID a connection may last for days and weeks. |
Thanks. |
With DTLS CID (and no obsolete (resumption) handshakes) my experience is rather good. |
Ok, thank you. |
Hi,
First I would like to thank you for all your help so far. I really appreciate it.
I'm using Leshan-2.0.0-M5, which uses Californium 3.0.0-RC1 under the hood.
I would like to set DTLS session timeout to 24h but in Californium3.properties file I can see that there is a DTLS.SESSION_TIMEOUT setting, which currently not supported.
DTLS session timeout. Currently not supported.
Default: 1[h]
DTLS.SESSION_TIMEOUT=1[d]
In Californium code there is this comment:
/**
* DTLS session timeout. Currently not supported!
*
* Californium uses {@link #DTLS_MAX_CONNECTIONS} and
* {@link #DTLS_STALE_CONNECTION_THRESHOLD} in order to keep session as
* along as the resources are not required for fresh connections.
*/
I'm currently using the default settings (DTLS.STALE_CONNECTION_THRESHOLD=30[min], DTLS.MAX_CONNECTIONS=150000).
So, there is no direct way to set DTLS session timeout?
What is the "effective" DTLS session when using above configuration, or if I put it differently, what can I do to set DTLS session to 24h.
Client devices will run in queue mode, they will send registration update once per day.
Best regards,
Sonny
The text was updated successfully, but these errors were encountered: