summaryrefslogtreecommitdiff
path: root/freefilesync/ffs_sftp.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-14 18:20:14 +0000
committerB Stack <bgstack15@gmail.com>2019-02-14 18:20:14 +0000
commit899f8baa296bb3ebcb2a79d52113c1ddd643a08a (patch)
tree324a06c40b35c1ee785077e0a3c67b31d3a75e9e /freefilesync/ffs_sftp.patch
parentpm-ublock dpkg for devuan (diff)
parentFreeFileSync 10.9 rpm and dpkg (diff)
downloadstackrpms-899f8baa296bb3ebcb2a79d52113c1ddd643a08a.tar.gz
stackrpms-899f8baa296bb3ebcb2a79d52113c1ddd643a08a.tar.bz2
stackrpms-899f8baa296bb3ebcb2a79d52113c1ddd643a08a.zip
FreeFileSync 10.9 rpm and dpkg
Application changes * Added FTP, SFTP, Google Drive support for Linux * FreeFileSync Donation Edition available for Linux * Compress file stream during Google Drive upload * Navigate beyond access-denied parents in SFTP folder picker * Fixed unexpected stream size error during FTP upload * Support native recursive deletion for Google Drive * Support native recursive deletion for MTP * Deterministically save Google Drive state during exit * Work around missing TMPDIR variable (Linux) * Support SFTP servers returning large package sizes during folder reading * Start with home path when using SFTP folder picker * Aggregate device authentication prompts during comparison * Clean up temp file after unexpected stream size error * Work around FTP servers not supporting HELP command * Support parsing path by volume name when volume is missing * Parse and streamline Google Drive error messages * Load next item after deleting from config history * Avoid redundant Google Drive syncs after file/folder creation * Avoid duplicate MTP item creation by multiple threads Package changes * Upstream removed Makefile install target, so each package implements basically identical, local install targets * Added patches for older versions of dependencies which do not alter basic usage of the application See merge request bgstack15/stackrpms!37
Diffstat (limited to 'freefilesync/ffs_sftp.patch')
-rw-r--r--freefilesync/ffs_sftp.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/freefilesync/ffs_sftp.patch b/freefilesync/ffs_sftp.patch
new file mode 100644
index 0000000..34dc9ad
--- /dev/null
+++ b/freefilesync/ffs_sftp.patch
@@ -0,0 +1,17 @@
+diff -x '*.orig' -x '*.swp' -x '*.rej' -Naur 10.9-0/FreeFileSync/Source/fs/sftp.cpp 10.9-1/FreeFileSync/Source/fs/sftp.cpp
+--- 10.9-0/FreeFileSync/Source/fs/sftp.cpp 2019-02-10 16:42:29.139040980 -0500
++++ 10.9-1/FreeFileSync/Source/fs/sftp.cpp 2019-02-10 21:28:00.030732089 -0500
+@@ -56,9 +56,10 @@
+
+ //attention: if operation fails due to time out, e.g. file copy, the cleanup code may hang, too => total delay = 2 x time out interval
+
+-const size_t SFTP_OPTIMAL_BLOCK_SIZE_READ = 4 * MAX_SFTP_READ_SIZE; //https://github.com/libssh2/libssh2/issues/90
+-const size_t SFTP_OPTIMAL_BLOCK_SIZE_WRITE = 4 * MAX_SFTP_OUTGOING_SIZE; //
+-static_assert(MAX_SFTP_READ_SIZE == 30000 && MAX_SFTP_OUTGOING_SIZE == 30000, "reevaluate optimal block sizes if these constants change!");
++// these values are all manually derived from https://github.com/libssh2/libssh2/blob/master/src/sftp.h which for some weak reason are not included in the libssh2-devel headers.
++const size_t SFTP_OPTIMAL_BLOCK_SIZE_READ = 4 * 30000; //https://github.com/libssh2/libssh2/issues/90
++const size_t SFTP_OPTIMAL_BLOCK_SIZE_WRITE = 4 * 30000; //
++//static_assert(MAX_SFTP_READ_SIZE == 30000 && MAX_SFTP_OUTGOING_SIZE == 30000, "reevaluate optimal block sizes if these constants change!");
+ /*
+ Perf Test, Sourceforge frs, SFTP upload, compressed 25 MB test file:
+
bgstack15