]> git.meshlink.io Git - utcp/commit
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)
commit9809749c054e9beb9b01aa4e7e2f597871da133c
treede932d8444d2ab6c6141cfce29bf3fe71e238f13
parentadbd21ef2be13e8d6ca329be012f702f2ba43c40
Handle incoming packets that don't fit into the receive buffer.

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.
utcp.c