zephyr/subsys/net/lib
Robert Lubos 966eff642f net: sockets: Fix recv() not being interrupted on close()
In case recv() call was waiting for data, and the socket was closed from
another thread, the recv() call would not be interrupted, causing the
receiving thread to be blocked indefinitely.

Fix this, by signalling the condvar the recv() call is waiting on
close(). Additionally, close will now set the socket into error mode,
with EINTR as the error condition, allowing the blocked calls to
recognise that the call was interrupted, and return a proper error code
on the event.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-05-26 09:05:12 -04:00
..
capture
coap net: coap: Add function for getting BLOCK1 option 2023-05-15 09:18:09 +02:00
config net: if: Add possibility to disable ND per interface 2023-04-29 12:24:49 +02:00
dns iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
http net: http: define http service and resource iterable sections 2023-03-08 13:57:13 +00:00
lwm2m net: lwm2m: Handle CONTINUE in registration message 2023-05-15 09:18:09 +02:00
mqtt net: mqtt: Debug logging of pointers 2023-03-15 15:02:47 +01:00
mqtt_sn net/lib: mqtt_sn: Fix MQTT-SN IPv6 Support and assertation in Example 2023-03-09 09:20:53 +01:00
sntp net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
sockets net: sockets: Fix recv() not being interrupted on close() 2023-05-26 09:05:12 -04:00
socks
tftp net: tftp: Add client context 2023-02-28 10:29:30 +01:00
tls_credentials init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
utils net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
websocket tests: net: websocket: Fix test execution on 64-bit platforms 2023-04-05 15:01:50 +02:00
zperf init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
CMakeLists.txt net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
Kconfig net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00