lwip: ooseq_max_bytes() - set a practical target memory size.

This commit is contained in:
Our Air Quality 2017-09-04 18:13:27 +10:00 committed by Erwin Boskma
parent bdaf3a2a2f
commit 8d4dec7e18
No known key found for this signature in database
GPG key ID: 1C79B2FD5FD63533

View file

@ -169,7 +169,7 @@ size_t ooseq_max_bytes(size_t n)
{
#if COPY_PP_RX_PBUFS
size_t free = xPortGetFreeHeapSize();
ssize_t target = ((ssize_t)free - 30000) + n;
ssize_t target = ((ssize_t)free - 8000) + n;
if (target < 0) {
target = 0;