smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.63k stars 402 forks source link

fix(tcp): only reset remote_last_ts if some data is enqueued #917

Closed copy closed 2 months ago

copy commented 2 months ago

I call send with a callback that often returns 0 (e.g. a real tcp socket that returns WouldBlock). This causes remote_last_ts being set to None and process being called even though nothing on the socket has changed.