commit | 96294b79a7d178e053997f24ca1413bde20c3642 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Tue Jan 10 10:37:58 2017 -0800 |
committer | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | Fri Jan 13 10:29:03 2017 +0100 |
tree | 3246fd6ad65ff5c389aa8b824c5e8a588bd41fb3 | |
parent | 9a87e403acfefd5c00166012e514d0dbf80e9593 [diff] |
net: tcp: Signal EOF with a NULL buffer in the callback TCP didn't actually have a way to signal synchronous receipt of a FIN packet. Extend the recv_cb API to allow a NULL buf argument with status==0 (by analogy to Unix's zero-length read) to signal EOF. Update docs too, and also echo_server which wasn't prepared to handle this situation. Change-Id: I7dc08f9e262a81dcad9c670c6471898889f0b05d Signed-off-by: Andy Ross <andrew.j.ross@intel.com>