Fixed bug #50992: window updated too often

This commit is contained in:
goldsimon 2017-05-10 13:40:17 +02:00
parent ae210967f2
commit 035bf4dcb0

View File

@ -863,9 +863,7 @@ lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags)
LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
if (flags & MSG_DONTWAIT) {
apiflags = NETCONN_DONTBLOCK;
} else {
apiflags = 0;
apiflags |= NETCONN_DONTBLOCK;
}
do {