Skip to content

Commit

Permalink
Merge pull request #18 from embulk/fix-timeout-setting
Browse files Browse the repository at this point in the history
Use second as timetout setting instead of milli second
  • Loading branch information
sakama authored Sep 26, 2016
2 parents 3ff594b + 5afa19e commit a396fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/embulk/input/sftp/SftpFileInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static FileSystemOptions initializeFsOptions(PluginTask task)
try {
SftpFileSystemConfigBuilder builder = SftpFileSystemConfigBuilder.getInstance();
builder.setUserDirIsRoot(fsOptions, task.getUserDirIsRoot());
builder.setTimeout(fsOptions, task.getSftpConnectionTimeout());
builder.setTimeout(fsOptions, task.getSftpConnectionTimeout() * 1000);
builder.setStrictHostKeyChecking(fsOptions, "no");

if (task.getSecretKeyFile().isPresent()) {
Expand Down

0 comments on commit a396fd7

Please sign in to comment.