mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
net/tcp: TCP_WAITALL should use state flag
The feature of MSG_WAITALL is broken since the wrong flag is used Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -402,7 +402,8 @@ static uint16_t tcp_recvhandler(FAR struct net_driver_s *dev,
|
|||||||
* next receive is performed.
|
* next receive is performed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((pstate->ir_recvlen > 0 && (flags & TCP_WAITALL) == 0) ||
|
if ((pstate->ir_recvlen > 0 &&
|
||||||
|
(pstate->ir_cb->flags & TCP_WAITALL) == 0) ||
|
||||||
pstate->ir_buflen == 0)
|
pstate->ir_buflen == 0)
|
||||||
{
|
{
|
||||||
ninfo("TCP resume\n");
|
ninfo("TCP resume\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user