summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2016-01-04 03:05:39 +0100
committerAlex Legler <alex@a3li.li>2016-01-04 03:05:39 +0100
commit570e448aac0cae59365c5829f9c5c74b7cf44f3e (patch)
tree158bbb1c04360cb20e8fbc0332bf68fc9fbb742a
parentSupport ftp (via curl for now) (diff)
downloadmirror-toolkit-570e448aac0cae59365c5829f9c5c74b7cf44f3e.tar.gz
mirror-toolkit-570e448aac0cae59365c5829f9c5c74b7cf44f3e.tar.bz2
mirror-toolkit-570e448aac0cae59365c5829f9c5c74b7cf44f3e.zip
Set curl time limitHEADmaster
-rw-r--r--lib/mirror_toolkit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mirror_toolkit.rb b/lib/mirror_toolkit.rb
index 8e1cde5..7e215c1 100644
--- a/lib/mirror_toolkit.rb
+++ b/lib/mirror_toolkit.rb
@@ -26,7 +26,7 @@ module MirrorToolkit
end
def curl(uri)
- stdin, stdout, stderr, wait_thr = Open3.popen3('curl', uri)
+ stdin, stdout, stderr, wait_thr = Open3.popen3('curl', '-m', '20', uri)
stdin.close
if wait_thr.value == 0