]> git.meshlink.io Git - utcp/commitdiff
Handle incoming packets that don't fit into the receive buffer.
authorGuus Sliepen <guus@sliepen.org>
Sat, 11 Apr 2020 22:29:49 +0000 (00:29 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sat, 11 Apr 2020 22:34:34 +0000 (00:34 +0200)
If the receive buffer size is reduced while there are still incoming
packets in flight, it can be that those will not fit inside the receive
buffer. Instead of calling abort(), just handle as much of the packet as
we can fit in the receive buffer, or handle the whole packet if it is in
order since we bypass the receive buffer in that case.


No differences found