diff options
author | Jianfeng Tan <henry.tjf@antfin.com> | 2019-08-19 23:13:03 +0800 |
---|---|---|
committer | Jianfeng Tan <henry.tjf@antfin.com> | 2019-08-22 15:25:38 +0000 |
commit | 2c3e2ed2bf4aa61bf317545fe428ff3adac95f92 (patch) | |
tree | 7bbb0df6a63ea89f6fcaed3aea175ca85ad7da04 /runsc | |
parent | 96f78e24668da189f78212e8c23951a461e14a8c (diff) |
unix: return ECONNRESET if peer closed with data not read
For SOCK_STREAM type unix socket, we shall return ECONNRESET if peer is
closed with data not read.
We explictly set a flag when closing one end, to differentiate from
just shutdown (where zero shall be returned).
Fixes: #735
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Diffstat (limited to 'runsc')
0 files changed, 0 insertions, 0 deletions