Improve SSHFS connection stability and fix handle leaks - #478
Open
TongLi-Galaxy wants to merge 3 commits into
Open
Improve SSHFS connection stability and fix handle leaks#478TongLi-Galaxy wants to merge 3 commits into
TongLi-Galaxy wants to merge 3 commits into
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sshfs-win 3.7.26236
This release improves SSHFS connection resilience on Windows and fixes several handle leaks and remote file-handle exhaustion issues affecting long-running mounts.
Highlights
Update SSHFS to the latest version.
Improved connection stability with the following default options for new installations:
ServerAliveInterval=15ServerAliveCountMax=3reconnectConnectTimeout=10request_timeout=30Added an SFTP request watchdog that terminates a mount when a request remains blocked for more than 30 seconds, preventing applications from hanging indefinitely.
Added automatic recovery support through WinFsp Launcher after an abnormal mount termination.
Fixed multiple handle leaks involving:
Changed Windows read operations to use transient SFTP read handles, preventing read handles from accumulating and exceeding the per-session server limit.
Added a rapid-failure circuit breaker that terminates a mount after repeated failures of critical SFTP operations within a short period, allowing the launcher to recover it cleanly.
Improved compatibility of the build and patching process with different line-ending formats.
Important notes
Existing network drive mappings must be disconnected and reconnected before the updated connection options take effect.
When a connection fails, in-progress operations may return an error and need to be retried. Writes that were still in progress when the connection failed may be lost.