commit | 78e8e0da428618292c4f126281032821aecc410a | [log] [tgz] |
---|---|---|
author | Robert Lubos <robert.lubos@nordicsemi.no> | Fri Apr 22 15:08:07 2022 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri May 13 15:42:01 2022 +0200 |
tree | 356eb7ec702d98c4babbd8daf902801041cb3ce5 | |
parent | 0b27f4b2f90e79efcbceeacae7ffe78e56a06ef7 [diff] |
net: sockets: Make use of the status field reported by TCP Make use of the status field, reported by TCP, in the socket receive callback. This allows to differentiate a graceful connection shutdown from actual errors at TCP level (transmission timeout or RST received). In case of error reported from TCP layer, set a new SOCK_ERROR flag on the socket, and store the error code in the net_context user_data. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>