-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix invalid response id after closing file #77
fix invalid response id after closing file #77
Conversation
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
Thank you for the PR! This is an short sight in the openssh-sftp-client, where I didn't think of this. There's actually another, probably better fix for this: In openssh-sftp-client, src/handle.rs, it drops the id right after sending a close request. This is the culprit, you could change the Drop to wait for the close request by using tokio::spawn. It will infer additional cost but IMHO might be better than ignoring any id-not-found related STATUS response. Edit: Change the drop impl for OwnedHandle to something like this:
|
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
@silver-ymz Can you please test this against the PR in opendal? |
BTW, @silver-ymz do you want to become a maintainer of this crate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And please update the doc for "mod unreleased" in src/changelog.rs
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
I will begin to make commit in opendal soon.
Thank you for giving me this chance. I'd like to become a maintainer. Sometimes because of my studies I may not be able to deal with issues in time, but I will try to maintain it as much as possible. |
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
#thumb_up
I've invited you to become a maintainer of openssh-sftp-client, openssh-sftp-protocol, concurrent_arena and awaitable github repository. @silver-ymz Please also provide me with your crates.io account name. Also, if you'd like, I can ask jonhoo to invite you to the openssh-rust org, so that you can contribute to every repository under it.
That's not a problem, everyone has their own life, just enjoy and contribute when you have time. Having another maintainer will also reduce the bus-factor of this project while also making updates/improvements more frequent/easier, and all of this is volunteer work/hobbies, I am actually grateful that you are willing to step up and become a maintainer. |
Will do a release later today. |
@jonhoo Can you please invite @silver-ymz to the openssh-rust org so that they have rw access (or even maintainer access) to all crates? Thank you! |
@NobodyXu invited! 🎉 |
Thank you! |
Sometimes after closing file, the server will send success message later. At this time, if we have removed
response_id
fromSharedData
, it will raise the error ofinvalid_response_id
.