diff --git a/example.conf.json b/example.conf.json index ac4ef037..aeff03df 100644 --- a/example.conf.json +++ b/example.conf.json @@ -12,7 +12,7 @@ "request_timeout": 60, // 1min - "connect_timeout": 5, // 5s + "connect_timeout": 10, // 10s "max_threads": 20 } diff --git a/lib/common/browser.rb b/lib/common/browser.rb index 88e1aca5..6cbe37f2 100644 --- a/lib/common/browser.rb +++ b/lib/common/browser.rb @@ -74,7 +74,7 @@ class Browser # 10 minutes, at this time the cache is cleaned before each scan. If this value is set to 0, the cache will be disabled @cache_ttl = 600 @request_timeout = 60 # 60s - @connect_timeout = 5 # 5s + @connect_timeout = 10 # 10s @user_agent = "WPScan v#{WPSCAN_VERSION} (http://wpscan.org)" end diff --git a/spec/lib/common/browser_spec.rb b/spec/lib/common/browser_spec.rb index b8239ad7..470130a3 100644 --- a/spec/lib/common/browser_spec.rb +++ b/spec/lib/common/browser_spec.rb @@ -130,7 +130,7 @@ describe Browser do headers: { 'User-Agent' => 'SomeUA' }, ssl_verifypeer: false, ssl_verifyhost: 0, cookiejar: cookie_jar, cookiefile: cookie_jar, - timeout: 60, connecttimeout: 5, + timeout: 60, connecttimeout: 10, maxredirs: 3, referer: nil } diff --git a/spec/samples/conf/browser.conf.json b/spec/samples/conf/browser.conf.json index 146b4d22..ab5d88de 100644 --- a/spec/samples/conf/browser.conf.json +++ b/spec/samples/conf/browser.conf.json @@ -2,6 +2,6 @@ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101 Firefox/9.0", "cache_ttl": 600, "request_timeout": 60, - "connect_timeout": 5, + "connect_timeout": 10, "max_threads": 20 } diff --git a/spec/samples/conf/browser.conf_proxy.json b/spec/samples/conf/browser.conf_proxy.json index c14520ed..f60413db 100644 --- a/spec/samples/conf/browser.conf_proxy.json +++ b/spec/samples/conf/browser.conf_proxy.json @@ -3,5 +3,5 @@ "proxy": "127.0.0.1:3038", "cache_ttl": 300, "request_timeout": 60, - "connect_timeout": 5 + "connect_timeout": 10 } diff --git a/spec/samples/conf/browser.conf_proxy_auth.json b/spec/samples/conf/browser.conf_proxy_auth.json index 87a7c8a0..898e8f3d 100644 --- a/spec/samples/conf/browser.conf_proxy_auth.json +++ b/spec/samples/conf/browser.conf_proxy_auth.json @@ -4,5 +4,5 @@ "proxy_auth": "user:pass", "cache_ttl": 300, "request_timeout": 60, - "connect_timeout": 5 + "connect_timeout": 10 }