Do not double-count recved bytes
Mongoose would report consumed bytes twice if mg_call is invoked recursively (e.g. proto_handler uses mg_call to invoke user's handler). Reporting twice as much recved as was delivered effectively disables LwIP's TCP throttling and causes buffers to grow too big. PUBLISHED_FROM=4ad5cd5db4dd54623bd6de2d50d32ddcc9e2b08a
Showing
Please
register
or
sign in
to comment