Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftp stuck right after transfer completion #71

Closed
ganeshchenniah opened this issue Mar 23, 2023 · 4 comments
Closed

sftp stuck right after transfer completion #71

ganeshchenniah opened this issue Mar 23, 2023 · 4 comments

Comments

@ganeshchenniah
Copy link

I m using below code to upload data . May i know where to add onProgress call . BTW i m using linux platform.

client = SSHClient(
await SSHSocket.connect('$ip', 22),
username: 'root',
onPasswordRequest: () => 'passwd',
// printTrace:print,
// printDebug: print,
);
final sftp = await client.sftp();

The below code gets stuck right after transfer completion sometimes . Do you know how to over come ?
sftp
await file.write(File('${appDocPath}/file.tgz').openRead().cast(), onProgress: (total) => print(total));

@ganeshchenniah
Copy link
Author

Any Update on this issue ? It still gets stuck after 100% transfer completion. Should we do any sync or something .

@brahimmasmudi
Copy link

i have the same problem , i tried deleting the files from my local storage after the upload is completed but it didn't work , also , this doesn't happen every time , sometimes the transfer doesn't get stuck after completion

@obemu
Copy link

obemu commented Jul 30, 2024

Same problem as #100, see my fix

@vicajilau
Copy link
Collaborator

vicajilau commented Aug 29, 2024

Many thanks for opening this! Duplicated and fixed in 2.10.0 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants