From f38cb10a99b5e999ad21a193ef97f22c032e727f Mon Sep 17 00:00:00 2001 From: lnu Date: Wed, 3 Oct 2007 18:29:41 +0000 Subject: reduce http timeout git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@131 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/httpfetcher.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/feed2imap/httpfetcher.rb b/lib/feed2imap/httpfetcher.rb index aab2d4e..2438994 100644 --- a/lib/feed2imap/httpfetcher.rb +++ b/lib/feed2imap/httpfetcher.rb @@ -49,6 +49,8 @@ class HTTPFetcher proxy_port, proxy_user, proxy_pass ).new(uri.host, uri.port) + http.read_timeout = 30 # should be enough for everybody... + http.open_timeout = 30 if uri.scheme == 'https' http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE -- cgit v1.2.3-54-g00ecf