]> git.meshlink.io Git - utcp/commit
Start the connection timeout timer when we have unACKed data.
authorGuus Sliepen <guus@sliepen.org>
Sun, 7 Jul 2019 14:54:25 +0000 (16:54 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 7 Jul 2019 14:54:25 +0000 (16:54 +0200)
commit6ef1b39de8c0b0537da02b212acaba3242afe142
tree488039c3c9bf9042b62dc0e2a4825a56426983e9
parentcb9223d3b895f1edb35bf7a6fd3aa9305de3f1db
Start the connection timeout timer when we have unACKed data.

Start it when we are have some data to send, and reset it whenever some of
the data is ACKed. Stop the timer if the peer has received all the data.

Also ensure the poll callback is called with len = 0 when the timeout is
hit.
utcp.c