diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-05-25 14:20:04 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-25 14:20:04 +0000 |
| commit | a58c7b60bc13b0896960c7f234f0b3dd7cd4d69d (patch) | |
| tree | 8a1bab5e79ab6ecaeab6284cd827972aa3e771d2 /embassy-sync/src | |
| parent | 6efcc9acaa15c6fa696c67b224297f9086732a75 (diff) | |
| parent | 373eb973574ac9390f8b4b19c2de486b1b38101a (diff) | |
Merge #1471
1471: embassy-net: Make TcpSocket::abort() async r=Dirbaio a=mkj
This lets callers ensure that the reset packet is sent to the remote host. Otherwise there isn't a way to wait for the smoltcp stack to send the reset.
Requires changes to smoltcp to wake after the reset has been sent, see https://github.com/smoltcp-rs/smoltcp/compare/master...mkj:smoltcp:abort-wake
This commit also adds a "TCP accept" demo of the problem. Without the `.await` for abort() it gets dropped before the RST packet is emitted.
Co-authored-by: Matt Johnston <[email protected]>
Diffstat (limited to 'embassy-sync/src')
0 files changed, 0 insertions, 0 deletions
