zephyr/subsys/net/lib/coap
Robert Lubos 7ccf870670 net: coap_client: Stop all socket activities when cancelling requests
Calling coap_client_cancel_requests() clears the internal request
context only for active requests (i. e. not replied yet). However,
if there are any pending request context monitoring ACK duplicates,
those would still make the corresponding client socket being monitored
by poll(). In result, when application closes the socket, the polling
thread will throw POLLNVAL error for the socket.

Fix this, by resetting all request contexts unconditionally. The request
callback will only be called for the active requests.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-02-18 13:31:15 +01:00
..
CMakeLists.txt
coap_client.c net: coap_client: Stop all socket activities when cancelling requests 2025-02-18 13:31:15 +01:00
coap_link_format.c net: lib: coap: Remove unused function 2025-02-12 02:25:53 +01:00
coap_server_shell.c
coap_server.c net: lib: coap: Handle truncated messages in CoAP server 2025-01-13 20:22:47 +01:00
coap.c net: coap: fix uninitialized usage of option struct 2025-02-11 11:45:05 +00:00
Kconfig net: lib: coap: Handle truncated messages in CoAP server 2025-01-13 20:22:47 +01:00