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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| coap_client.c | ||
| coap_link_format.c | ||
| coap_server_shell.c | ||
| coap_server.c | ||
| coap.c | ||
| Kconfig | ||