mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 20:08:27 +00:00
1f4fde9525
The read/write loops may keep going for a while on a closing connection with lots of read/write activity, as it's random which select case is chosen. And if the connection is slow or even broken, a single read/write can take a long time/until timeout. Add initial non-blocking selects with only the cases relevant to closing, to prioritize those.