[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #14395] recv of short buffer should eventually time o
From: |
Joel Cunningham |
Subject: |
[lwip-devel] [task #14395] recv of short buffer should eventually time out |
Date: |
Thu, 2 Mar 2017 16:16:26 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8 |
Follow-up Comment #7, task #14395 (project lwip):
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
LWIP_ASSERT("invalid copylen, len would underflow", len >= copylen);
len -= copylen;
if ((len <= 0) ||
(p->flags & PBUF_FLAG_PUSH) ||
(sock->rcvevent <= 0) ||
((flags & MSG_PEEK) != 0)) {
done = 1;
}
} else {
done = 1;
}
Just looking at this code again (in lwip_recvfrom), but won't the check
against sock->rcvevent cause the done state to be set, which then exits the
loop preventing blocking after the recvmbox has been drained?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?14395>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, Simon Goldschmidt, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, David van Moolenbroek, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, Simon Goldschmidt, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, David van Moolenbroek, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, David van Moolenbroek, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, Joel Cunningham, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, Simon Goldschmidt, 2017/03/02
- [lwip-devel] [task #14395] recv of short buffer should eventually time out,
Joel Cunningham <=
- [lwip-devel] [task #14395] recv of short buffer should eventually time out, Simon Goldschmidt, 2017/03/02
- Re: [lwip-devel] [task #14395] recv of short buffer should eventually time out, address@hidden, 2017/03/02
- Re: [lwip-devel] [task #14395] recv of short buffer should eventually time out, Joel Cunningham, 2017/03/02