seek 138412032 not supported with cursor 142308330
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
I used SftpFileStream.WriteAsync(buffer, 0, length, token).ConfigureAwait(false).GetAwaiter().GetResult() to upload file. It works well in most case but sometimes it throws below exception
'Renci.SshNet.Common.SshException,Message=seek 138412032 not supported with cursor 142308330.,Source=Renci.SshNet'
I searched in Google and found a related post which suspect it's the concurrency issue.
https://forum.rclone.org/t/update-readfrom-failed-sftp-seek-159744-not-supported-with-cursor-126976-ssh-fx-failure/25580/3
https://github.com/rclone/rclone/issues/5806
I want to know the reason why this exception happens?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported SftpFileStream.WriteAsync(...).ConfigureAwait(false).GetAwaiter().GetResult() upload pattern and investigate how concurrent writes or seeks could produce the reported cursor mismatch. Compare the behavior with the linked rclone reports; done means identifying and documenting the cause, with a focused reproduction or test if the project supports one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100