commit | e8f09b471e907d05772b8fc42e9e14a28101c0b8 | [log] [tgz] |
---|---|---|
author | Robert Lubos <robert.lubos@nordicsemi.no> | Fri Oct 29 12:46:48 2021 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Nov 02 13:26:25 2021 +0100 |
tree | f30be06b721b2009c553f6d1968f092c64f1dcb1 | |
parent | 50ec0461af7fb4060076dff6707fb295c978da32 [diff] |
net: sockets: tls: Fix TCP disconnect detection in poll() `ztls_socket_data_check()` function ignored a fact when `mbedtls_ssl_read()` indicated that the underlying TCP connection was closed. Fix this by returning `-ENOTCONN` in such case, allowing `poll()` to detect such event. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>