implement ssh_connect_flag

Each copy thread establishes SSH/SFTP connection to remote host.
A delay is inserted between SSH connecting to the remote.
This commit is contained in:
Ryo Nakamura
2023-03-14 00:43:53 +09:00
parent 9b0eb668f9
commit 72c27f16d6
2 changed files with 80 additions and 24 deletions

View File

@@ -132,7 +132,7 @@ static int resolve_dst_path(const char *src_file_path, char *dst_file_path,
snprintf(dst_file_path, PATH_MAX - 1, "%s/%s",
a->dst_path, src_file_path + strlen(a->src_path) + 1);
mpr_info(a->msg_fd, "file: %s -> %s\n", src_file_path, dst_file_path);
mpr_debug(a->msg_fd, "file: %s -> %s\n", src_file_path, dst_file_path);
return 0;
}