Hi
I’m currently working on the same problem. What is the best practice for persisting session state at DTLS level?
I found out that DTLSConnector takes a ConnectionStore as an in parameter (link below). Do I need to implement my own
LwM2mServer, in order to pass an ConnectionStore to the coapserver or is there a better way?
https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/impl/LeshanServer.java#L154
Kind regards
Daniel
Från: leshan-dev-bounces@xxxxxxxxxxx [mailto:leshan-dev-bounces@xxxxxxxxxxx]
För Gajjala Vinay
Skickat: den 15 januari 2016 20:37
Till: leshan developer discussions <leshan-dev@xxxxxxxxxxx>
Ämne: Re: [leshan-dev] Persistence & Clustering of Client
Thanks for the tip Kai.
Vinay,
please also be aware of the state potentially managed at the Calfornium level, in particular if you use DTLS. Californium (or to be more precise
its Scandium component) keep track of DTLS session state for each client in memory as well. Thus, if your server contains the full stack (leshan, Californium, Scandium) you will also need to take care of persisting session state at the DTLS level and probably
also make your clients try to “resume” their DTLS session if they are not able to connect to the server after the server has restarted …
You should implement your own org.eclipse.leshan.server.client.ClientRegistry, then pass it at creation :
LeshanServer server = new LeshanBuilder().setClientRegistry(new YourClientRegistry()). .... .... .build()
Le 14/01/2016 18:29, Gajjala Vinay a écrit :
Hi
Whenever my server is restarted it is losing the client state like registration etc., there by any update registrations after server restart from the
clients are failing.
I like to know is there a way I can implement/extend the current Client cache which Leshan stores in memory to persist and share across cluster?
Thanks
Vinay
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure,
either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure,
either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.