GNOME Bugzilla – Bug 631169
sftp: fix poll() timeout.
Last modified: 2010-10-04 12:01:32 UTC
When switching from select() to poll() in commit "sftp: Use poll() to cope with openssh-5.6 changes" (c6be45c8934) the difference in seconds vs milliseconds for select/poll timeout argument was missed. SFTP_READ_TIMEOUT is defined in seconds, so multiply it with 1000 when using it with poll().
Created attachment 171568 [details] [review] sftp: fix poll() timeout. When switching from select() to poll() in commit "sftp: Use poll() to cope with openssh-5.6 changes" (c6be45c8934) the difference in seconds vs milliseconds for select/poll timeout argument was missed. SFTP_READ_TIMEOUT is defined in seconds, so multiply it with 1000 when using it with poll().
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. http://git.gnome.org/browse/gvfs/commit/?id=4033907045abcf498686c1b34be7b0160260088d