• Deomid Ryabkov's avatar
    Do not double-count recved bytes · 1db747da
    Deomid Ryabkov authored
    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
    1db747da
mongoose.c 470 KB