Skip to content

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

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions