Skip to content

sshfs aborts read after first packet when the remote system uses a smaller read buffer size #322

@bebbo

Description

@bebbo

When you mount a remote system which uses smaller buffers than the default 32k, then reading aborts after the first received packet.

sshfs.c:3088

		} else if (size < (size_t) rreq->res) {
			buf_get_mem(&rreq->data, buf, size);
			rreq->res -= size;
			rreq->size -= size;
			res += size;
			break;

The correct behaviour is to check the EOF flag behind the data, which indicates that this packet was the last packet.

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