zephyr/subsys/net/lib
Robert Lubos 279de669b5 net: lwm2m: Stop the LwM2M engine in case of fatal network error
In case of fatal network error (i.e. when the LwM2M client runs out of
retries), call lwm2m_engine_stop() to cleanup any allocated resources
for the client. The engine is dead at that point anyway so the
application needs to recover.

If this isn't done, it is theoretically possible to restart the LwM2M
client (with lwm2m_rd_client_start() which does not report an error in
such case), which in turn could lead to resource leaks (like for
example the observer list is reinitialized) if the application
didn't call lwm2m_rd_client_stop() first. Calling lwm2m_engine_stop()
ensures that all resources are freed even if the application doesn't
call stop before restarting.

Stopping the engine is also needed when the network error occurs when
de-registering - in such case the engine goes straight into the IDLE
state, where it's possible to restart the client and thus reinitialize
the observer lists.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-29 11:18:36 +01:00
..
capture
coap net: coap_client: Don't send RST on unrecognized ACK response 2025-07-10 16:01:03 -05:00
config net: remove dependency on posix for iso c time() function 2025-06-24 14:18:52 +02:00
dhcpv4 net: dhcp: Remove only added DNS servers when stopping 2025-06-26 14:08:19 +02:00
dhcpv6 net: dhcpv6: Avoid directly accessing address of unaligned struct 2025-07-01 10:15:55 -05:00
dns net: dns: Check interfaces to be NULL before use 2025-07-08 13:41:11 -05:00
http net: lib: http: allow configuring response chunk size 2025-07-19 13:48:00 -04:00
latmon latmon: guard kconfigs to avoid leaks 2025-07-21 07:51:07 -04:00
lwm2m net: lwm2m: Stop the LwM2M engine in case of fatal network error 2025-07-29 11:18:36 +01:00
mqtt net: mqtt: Allow to bind client to a specific interface 2025-06-11 16:18:31 -07:00
mqtt_sn
prometheus
ptp net: lib: ptp: fix memory slab alignment issues 2025-06-27 17:00:37 -05:00
shell net: shell: dns: Print info about DHCP added servers 2025-06-26 14:08:19 +02:00
sntp
sockets net: sockets: add missing break 2025-07-19 10:10:58 +02:00
socks
tftp
tls_credentials net: tls_credentials_shell: Add credential buffer load argument 2025-06-17 17:45:26 +02:00
trickle
utils
websocket net: lib: websocket: Avoid bitshift overflow warning 2025-07-04 13:16:32 -05:00
wifi_credentials net: l2: wifi: Refactor certificates processing code into common file 2025-07-25 17:03:38 +01:00
zperf net: lib: zperf: Fix 'kbps' in output 2025-06-30 15:19:39 -05:00
CMakeLists.txt net: latmon: Add latency monitor service 2025-07-20 12:27:30 -04:00
Kconfig net: latmon: Add latency monitor service 2025-07-20 12:27:30 -04:00