zephyr/subsys/net
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
..
conn_mgr iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
ip net: allow UDP missing checksum by default 2023-05-23 22:09:47 +02:00
l2 net: l2: ieee802154: move variable declaration to start of block 2023-05-24 16:41:57 +02:00
lib net: sockets: Fix recv() not being interrupted on close() 2023-05-26 09:05:12 -04:00
pkt_filter
buf_simple.c
buf.c
CMakeLists.txt net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
hostname.c
Kconfig net: conn_mgr: Reorganize files 2023-05-11 12:15:44 +02:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net