Skip to content

SFTP False error raised during open #23

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

Closed
maxux opened this issue Feb 28, 2018 · 3 comments
Closed

SFTP False error raised during open #23

maxux opened this issue Feb 28, 2018 · 3 comments

Comments

@maxux
Copy link

maxux commented Feb 28, 2018

Using git version (master) of the ssh2-python, the sftp open code doesn't handle the LIBSSH2_ERROR_EAGAIN and raise it as an error (since c2e5381)

I made a small patch which fix the issue on my local setup, which was raising all the time an error when trying to use sftp, because of the LIBSSH2_ERROR_EAGAIN, but this is probably but the most efficient way you want to commit (this is why I didn't made any Pull Request).

The patch: maxux@7dc3833

Based on the C exemple here: http://yoyakuweb.com/lib/libssh2-1.4.3/libssh2-1.4.3/example/sftp_nonblock.c
Some waitsocket workaround should be done and not a loop like me.

Anyway, the LIBSSH2_ERROR_EAGAIN should definitively be handled during sftp open call.

@pkittenis
Copy link
Member

Hi there,

Thanks for the interest and report - yes, it should be checking for EAGAIN. That is in a dev branch and due for next release.

@maxux
Copy link
Author

maxux commented Mar 5, 2018

Hi, thanks for the reply.
Is this already pushed ?

@pkittenis
Copy link
Member

Not merged to master yet. In progress development is at exceptions branch.

Red-M pushed a commit to Red-M/ssh2-python that referenced this issue Jun 27, 2020
…SFTP error code handling, tests.

Documentation updates, changelog.
Resolves ParallelSSH#23
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

2 participants