commit | 0b27f4b2f90e79efcbceeacae7ffe78e56a06ef7 | [log] [tgz] |
---|---|---|
author | Robert Lubos <robert.lubos@nordicsemi.no> | Fri Apr 22 15:01:33 2022 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri May 13 15:42:01 2022 +0200 |
tree | 7fd2cb22dd8990ecb2395049ea32d238bbc48c98 | |
parent | b3dfc244ad366d3632d01ad19aba34482ea0e192 [diff] |
net: tcp: Report TCP errors through recv_cb() Make use of the status argument in the recv_cb() callback function - instead of blindly reporting ECONNRESET whenever TCP context is dereferenced, indicate whether an actual error condition happened (by setting respective errno value) or a graceful shutdown took place (by setting status to 0). Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>