Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Michal Zatloukal <myxal.mxl@gm...> - 2011-02-27 01:08:22
let me add a "me too" to this thread. Also, it's not just about the
servers being restarted or losing connection - I connect my home server
share both from home and on the go. Disconnecting every time before I
suspend the laptop before commuting or whatever has become a quite
Here's a thought - how about adding scripts for pm-utils (or whatever
handles suspending in modern distros) to unmount sshfs mounts on suspend
and attempt to restore them on resume?
From: Thue Janus Kristensen <thuejk@...> - 2011-01-26 21:53
> It would be nice if it would do something other than hanging
> Whether that is to try to reconnect, or to unmount, is not so important.
>2011/1/24 Miklos Szeredi <miklos@...>
>> On Fri, 21 Jan 2011, Thue Janus Kristensen wrote:
> > > If I have an SSHFS-mounted filesystem and the established
> > > becomes invalid, for example if I restart my router, SSHFS bugs out.
> > > example, if I try to do a ls of the mounted directory, the ls hangs
> > forever.
> > >
> > > Why doesn't SSHFS automatically unmount the now invalid mount point,
> > at
> > > least return a read error to ls?
> > SSHFS doesn't know, it uses ssh, which in turns uses TCP sockets,
> > which behave badly in the presense of dynamic IP.
> > The solution would be to give sshfs a timeout after which it kills the
> > hanging ssh connection and starts up a new one.
> > Returning an error may not be the right thing, the network might just
> > be down temporarily. Unfortunately there's no way to differentiate a
> > temporary network outage from a changed IP address in the router,
> > which will cause TCP connections to hang "permanently".
> > Thanks,
> > Miklos
Using Opera's revolutionary email client: http://www.opera.com/mail/
On 2011-02-27 01:08, Michal Zatloukal wrote:
> let me add a "me too" to this thread. Also, it's not just about the
> servers being restarted or losing connection - I connect my home server
> share both from home and on the go. Disconnecting every time before I
> suspend the laptop before commuting or whatever has become a quite
> annoying chore.
Me too, and also "us too" on behalf of users of the Tahoe-LAFS distributed
filesystem, which depends on sshfs to provide FUSE access. These hangs are
one of the significant downsides of relying on sshfs.
> Here's a thought - how about adding scripts for pm-utils (or whatever
> handles suspending in modern distros) to unmount sshfs mounts on suspend
> and attempt to restore them on resume?
I think that would be addressing the problem at the wrong place, since it
doesn't only occur on suspend/resume.
David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com