]> git.meshlink.io Git - meshlink/commit
Ensure the flush timer is started if we never had any full packets to send.
authorGuus Sliepen <guus@meshlink.io>
Wed, 27 May 2020 19:07:32 +0000 (21:07 +0200)
committerGuus Sliepen <guus@meshlink.io>
Wed, 27 May 2020 19:19:07 +0000 (21:19 +0200)
commitecdd0ca7749f0c8c2d948db67c1de4b0d3c3e4ed
tree27295b6129aff2270f7446be0cdeb90c86feb880
parentaad97d717a86b999c5ebf105131471550023dbc8
Ensure the flush timer is started if we never had any full packets to send.

The flush timer ensures that if there is partial data left in the send
buffer for framed UDP channels, that this is sent after the flush timeout.
This was done correctly if we had previously sent full packets, but if there
never was a full packet the timer wouldn't be started, and the small frames
wouldn't be sent unless the application would send more data on the channel.
src/utcp.c