]> git.meshlink.io Git - utcp/commitdiff
Don't call the poll callback unnecessarily.
authorGuus Sliepen <guus@sliepen.org>
Sun, 29 Mar 2020 14:21:51 +0000 (16:21 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 29 Mar 2020 14:21:51 +0000 (16:21 +0200)
Currently we call the poll callback if there is any free space in the send
buffer, every time we call utcp_timeout(). However, if the application
does not send anything inside the callback, then it most likely won't send
anything the next time if the free space in the send buffer did not change.
So only call the callback when more space has been made available in the
send buffer.


No differences found