mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
usrsock: Don't clear recvfrom available flag
Don't clear available flag if the response indicate there is more data Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
01fe37206a
commit
e7d1ba157c
@@ -83,8 +83,9 @@ static uint16_t recvfrom_event(FAR struct net_driver_s *dev,
|
|||||||
pstate->valuelen_nontrunc = conn->resp.valuelen_nontrunc;
|
pstate->valuelen_nontrunc = conn->resp.valuelen_nontrunc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pstate->reqstate.result >= 0 ||
|
if (!(flags & USRSOCK_EVENT_RECVFROM_AVAIL) &&
|
||||||
pstate->reqstate.result == -EAGAIN)
|
(pstate->reqstate.result >= 0 ||
|
||||||
|
pstate->reqstate.result == -EAGAIN))
|
||||||
{
|
{
|
||||||
/* After reception of data, mark input not ready. Daemon will
|
/* After reception of data, mark input not ready. Daemon will
|
||||||
* send event to restore this flag.
|
* send event to restore this flag.
|
||||||
|
|||||||
Reference in New Issue
Block a user