GNOME Bugzilla – Bug 734194
afp volumes disconnect frequently
Last modified: 2014-08-03 16:13:33 UTC
When connected to an OS X 10.8 AFP volume, I get disconnected after only a few minutes of inactivity, even though the AFP server is set not to disconnect users. Combined with bug 710490, this is pretty annoying. A wiretrace shows that, for whatever reason, the server sends Tickle messages less and less frequently (even though the client responds to them promptly) until after 128 seconds of inactivity, the server disconnects.
Created attachment 282404 [details] [review] afp: Try to prevent idle disconnects Some servers (e.g. OS X 10.8) disconnect clients who don't respond to server notifications. Prevent this by sending FPGetVolParms, as the spec suggests.
The attached patch fixes the problem for me.
Review of attachment 282404 [details] [review]: ::: daemon/gvfsafpvolume.c @@ +62,1 @@ /* TODO: Add deinitalization code here */ You can remove this TODO.
(In reply to comment #3) > Review of attachment 282404 [details] [review]: > > ::: daemon/gvfsafpvolume.c > @@ +62,1 @@ > /* TODO: Add deinitalization code here */ > > You can remove this TODO. Done. Pushed to master as a4016460538ea8be22aa0d8289922b389a93ef78. Thanks for the review!