eclipse-leshan / leshan

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

Ensure that client use same endpoint for a given registration #1655

Open sbernard31 opened 1 month ago

sbernard31 commented 1 month ago

This was discuss at https://github.com/eclipse-leshan/leshan/issues/1415

So,

The main consequence is that if you persist your registration and re-run Leshan server with different endpoint this could lead to unexpected issue. Like registration can not be reused if the server endpoint doesn't exist anymore or have different Uri.

Typically, if you persist registration and you create your endpoint with a wildcard port number (letting system pick a free port for you) when you will restart the server this will probably lead to issue. But my guess is this is not a real production use cases.

sbernard31 commented 1 month ago

@JaroslawLegierski , @cyril2maq, It could be worth to look at this too.