fs.sshfs icon indicating copy to clipboard operation
fs.sshfs copied to clipboard

fs.sshfs not threadsafe?

Open dhirschfeld opened this issue 6 years ago • 2 comments

When I try to make multiple calls to fs.open in a ThreadPoolExecutor my program hangs :(

Is fs.sshfs expected to be threadsafe? Is this a known issue?

dhirschfeld avatar Jul 23 '18 04:07 dhirschfeld

I expect it to be, since paramiko.SFTPClient is supposed to be as well. I tried to test against the new workers tests added by Will but unfortunately it always reaches a point where SSHFile.read hangs undefinitely, and I can't understand why yet.

althonos avatar Jul 23 '18 15:07 althonos

Yeah, my app hung when I tried to use multiple threads. I've currently worked around it by using a threadlocal copy.

dhirschfeld avatar Jul 23 '18 23:07 dhirschfeld