Repair a verified behavior in apache/nuttx.
Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). rpmsg stream sockets (AF RPMSG): peer disconnect before accept() yields a stale accepted socket (no EOF, no POLLHUP, wrong send error) and leaks tx buffers on failed sends
The task
rpmsg stream sockets (AF_RPMSG): peer disconnect before accept() yields a stale accepted socket (no EOF, no POLLHUP, wrong send error) and leaks tx buffers on failed sends
Part of henryen/OriGent-RL-Data.