After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500538 - the sftp method should properly handle sftp subprocess timeout
the sftp method should properly handle sftp subprocess timeout
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: ssh/sftp
2.20.x
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
gnome[unmaintained]
: 500539 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-29 22:45 UTC by Fabrice Bellet
Modified: 2018-08-17 13:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
gnome-vfs-2.20.1-sftp-timeout.patch (829 bytes, patch)
2007-11-29 23:45 UTC, Fabrice Bellet
none Details | Review
reconnect on connection eof error (1.07 KB, patch)
2007-11-29 23:46 UTC, Fabrice Bellet
none Details | Review
gnome-vfs-2.20.1-reconnect-on-io-error.patch (2) (1.47 KB, patch)
2007-12-16 17:00 UTC, Fabrice Bellet
none Details | Review
gnome-vfs-2.20.1-better-status-value-handling.patch (2.71 KB, patch)
2007-12-16 17:08 UTC, Fabrice Bellet
none Details | Review

Description Fabrice Bellet 2007-11-29 22:45:30 UTC
Please describe the problem:
The sftp module should restart a sftp subprocess, in a transparent way for the application, when it abnormally disappears (for example, when the connection closes on a timeout, or when the sftp process is killed). Patches follow. 

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Fabrice Bellet 2007-11-29 23:45:08 UTC
Created attachment 99872 [details] [review]
gnome-vfs-2.20.1-sftp-timeout.patch

this patch detects when the connection timeouts or when the subprocess is killed
Comment 2 Fabrice Bellet 2007-11-29 23:46:46 UTC
Created attachment 99873 [details] [review]
reconnect on connection eof error

this patch forces a reconnection when the current connections state is GNOME_VFS_ERROR_EOF.
Comment 3 Fabrice Bellet 2007-11-29 23:47:38 UTC
*** Bug 500539 has been marked as a duplicate of this bug. ***
Comment 4 Fabrice Bellet 2007-12-16 17:00:21 UTC
Created attachment 101059 [details] [review]
gnome-vfs-2.20.1-reconnect-on-io-error.patch (2)

The old connection should be closed asap, not after the SFTP_CLOSE_TIMEOUT timeout.
Comment 5 Fabrice Bellet 2007-12-16 17:08:52 UTC
Created attachment 101061 [details] [review]
gnome-vfs-2.20.1-better-status-value-handling.patch

A GnomeVFSResult status, that is the symptom of a problem with the sftp subprocess should be returned to the calling functions, so we have the possibility to detect problems, like the sftp-server unexpectedly dying on the remote host (this typically causes applications using the sftp method to start using 100% cpu, until the dangling connection is properly closed client-side, and re-opened). 

The set of patches proposed in bz #500307, #500533, and here allow me to have a working mail-notification applet, accessing remote mailboxes with sftp/gnomevfs.
Comment 6 André Klapper 2018-08-17 13:48:56 UTC
gnome-vfs got deprecated in 2008.

gnome-vfs is not under active development anymore and had its last code changes
in 2011. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gnome-vfs/commits/master

gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!