zephyr/subsys/net
Robert Lubos 397b2a71fa net: lwm2m: Add a callback to notify socket errors to engine users
Currently, when socket errors occur during receive, the LwM2M engine
restarts the state machine and registers again to the server. While this
works in simple use case (only RD client socket open), it's not a valid
approach when more sockets are open (FW update socket).

Fix this by introducing socket fault callback, which is registered by
the LwM2M engine users. This way, a proper socket owner is notified on
error and can pertake appropriate action.

For RD socket errors the behaviour remains the same - the state machine
is reset and the client registers again to the server. For FW update
socket, handle the error by reopening the socket and retransmitting the
last request. This allows to resume the download from the point the
error occured, w/o a need to start from scratch.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-11-06 12:57:32 +01:00
..
ip net: tcp2: Update seq when peer closes connection 2020-11-04 11:17:47 +02:00
l2 net: openthread: fix maximum number of children range 2020-11-04 18:08:48 +02:00
lib net: lwm2m: Add a callback to notify socket errors to engine users 2020-11-06 12:57:32 +01:00
buf.c net: buf: change avail_count variable to atomic type 2020-10-28 18:45:11 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
Kconfig net: Remove CONFIG_LEGACY_TIMEOUT_API dependency 2020-05-01 10:50:03 +03:00
Kconfig.hostname kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.default.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00