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

listdir hangs indefinitely #15

Closed
dhirschfeld opened this issue Jul 21, 2018 · 1 comment · May be fixed by #16
Closed

listdir hangs indefinitely #15

dhirschfeld opened this issue Jul 21, 2018 · 1 comment · May be fixed by #16
Labels
bug something does not work fixed associated bug was fixed
Milestone

Comments

@dhirschfeld
Copy link

Just trying to use fs.sshfs to access an sftp server but I'm finding that listdir is hanging indefinitely.

I've tracked it down to this line:

uname_sys = self._exec_command("uname -s")

...which calls the paramiko SSHClient.exec_command without a timeout argument:

fs.sshfs/fs/sshfs/sshfs.py

Lines 294 to 295 in 33f981b

_, out, err = self._client.exec_command(cmd)
return out.read().strip() if not err.read().strip() else None

Unfortunately, for whatever reason this seems to never return for me.

dhirschfeld added a commit to dhirschfeld/fs.sshfs that referenced this issue Jul 21, 2018
@althonos althonos added the bug something does not work label Jul 22, 2018
@althonos althonos added this to the 0.9.0 milestone Sep 3, 2018
@althonos
Copy link
Owner

Fixed in 44faa73.

I'm not ignoring for eventual socket errors, but raising them, since this is what the rest of the functions do (handle filesystem logic, but pass network errors transparently).

@althonos althonos added the fixed associated bug was fixed label Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something does not work fixed associated bug was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants