Skip to content

SftpClient.UploadFile hangs indefinitely when server has run out of space #343

@mikkorepolainen

Description

@mikkorepolainen

SftpClient connection succeeds and an empty file is created upon calling UploadFile with a stream, but the call hangs indefinitely when the server refuses to accept file contents (regardless of client timeout setting). The UploadFile call should throw an exception instead at least after timeout.

Attempting to upload with FileZilla on the same server results in error: error while writing: received unknown error code 14 with description 'No space available.'.

I'm not in control of the sftp server so I cannot investigate that end. Might be badly behaving server software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions