pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.5k stars 380 forks source link

Missing ID passthru on statfs #467

Closed puellanivis closed 3 years ago

puellanivis commented 3 years ago

Issue https://github.com/pkg/sftp/issues/466 raised an issue of a lockup that was ascribed to statfs hanging, however, the problem is that Server was responding with ID = 0 as it wasn’t being populated. It looked like the issue was statfs because it was the last thing that happened before the combination of binaries started sleeping, but it had actually returned.

This error caused sshfs to freakout, because it had not sent a request with ID = 0 (which is technically an invalid ID anyways) and print request 0 not found. But as sshfs was still waiting for the response it just threw out, everything desynced and started waiting forever.