Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp: handle pcb->snd_queuelen and chained pbufs during segment split (bug #52692) This fixes a bug in tcp_split_unsent_seg() where a chained pbuf was not correctly updating pcb->snd_queuelen during trimming and snd_queuelen would desynchronize if pbuf_realloc() freed some of the chain Also, use pbuf_clen() for adding the new remaining segment rather than ++. The new remaining segment should always be one pbuf due to the semantics of PBUF_RAM, but this follows the best practice of using pbuf_clen()
- Loading branch information