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> |
||
|---|---|---|
| .. | ||
| conn_mgr | ||
| ip | ||
| l2 | ||
| lib | ||
| pkt_filter | ||
| buf_simple.c | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||