Skip to content

How to implement the "AsynchronousFileChannel newAsynchronousFileChannel" in sshd sftp? #758

Open
@hooverhe

Description

@hooverhe

I am using sshd-sftp 2.15.0. When we download a lot of large files concurrently, we are facing downloading neck with default implementation "FileChannel newFileChannel" in RootedFileSystemProvider. But I found the "AsynchronousFileChannel newAsynchronousFileChannel" function in it, too. I think maybe it has better performance. Right?

But the class FileHandle has the "SeekableByteChannel fileChannel" property, and it is calling the provider.newFileChannel(path, options, attrs) in FileHandle. And AsynchronousFileChannel does not implement SeekableByteChannel.

Can you give me some guides how to implement the "AsynchronousFileChannel newAsynchronousFileChannel" in sshd sftp? For downloading neck, do you have any suggestion? Thanks.

Image

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