diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-02-22 14:27:19 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-22 14:27:19 +0000 |
| commit | 464faa2a04416a30b728910ac9504c06d484eb9a (patch) | |
| tree | 17433add913f78d5d19c2a61b3248c203f445d07 /examples/boot/bootloader/rp | |
| parent | b05cd77a62bc8902db2ae2dd36ed58b88acee932 (diff) | |
| parent | 035de6f3ff7bae31dce25b55e822f75b46ebe047 (diff) | |
Merge #1226
1226: embassy-net: Implement flush for TcpSocket r=Dirbaio a=kbleeke
Implements flush for TcpSocket by checking the send queue.
Flushing is implemented by checking if smoltcp's send_queue/tx_buffer is empty. The flush is completed when all outstanding octets are acknowledged. Smoltcp wakes the send waker [here](https://docs.rs/smoltcp/latest/src/smoltcp/socket/tcp.rs.html#1712) when ACKs are processed and data is removed from the send buffer. So we can re-check in our flush implementation, if the buffer is now empty.
fixes #1223
Co-authored-by: kbleeke <[email protected]>
Diffstat (limited to 'examples/boot/bootloader/rp')
0 files changed, 0 insertions, 0 deletions
