Skip to content

[Feature Request] Expose libssh timeouts and add safe transfer cancellation #6

Description

@MansiVisuals

Hi, thank you for maintaining MFT.

Would it be possible to add connection/transfer timeout support and safe cancellation for stalled uploads or downloads?

I’m using MFT in an iOS File Provider extension, where transfers can run on unreliable mobile networks. MFT’s progress callback works well while bytes are moving, but if a connection stalls completely and no callback arrives, there is no supported way to stop the active transfer.

Calling [disconnect] from another queue is risky because MFTSftpConnection is not thread-safe.
A timeout or cancellation mechanism managed inside MFT would let apps fail the transfer cleanly and retry using a fresh connection.

Since MFT already uses libssh, perhaps its timeout options could be exposed through MFT. This would be very helpful for mobile and background synchronization use cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions