mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-10-11 19:23:59 +00:00
166bb3d2ac3a59eeaafab6ac0aac7b98c8d93778
`is_reusable_for` rejected a closed session but not one ICE currently reports Disconnected. Nothing else does either - that state is deliberately not part of the connection-state enum - so a caller could be given a session that already carries the hint, and start off suspecting a peer it never used. Also drops a race from the receive-progress test: it raced `next()` against a sleeping sibling in a select, so a transfer that landed inside one poll left the assertion looking false, and a slow enough one exhausted the loop and failed with a misleading message. It now reads the counter after a `next_timeout` that returned nothing, which is a point where the message is known to be incomplete. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns
Description
No description provided
74 MiB
Languages
Rust
100%