Increases default connect-timeout to 10s - Fixes #803

This commit is contained in:
erwanlr
2015-04-10 16:58:21 +01:00
parent 36f6f98ce7
commit 4fbc535b0c
6 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
"request_timeout": 60, // 1min "request_timeout": 60, // 1min
"connect_timeout": 5, // 5s "connect_timeout": 10, // 10s
"max_threads": 20 "max_threads": 20
} }

View File

@@ -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 # 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 @cache_ttl = 600
@request_timeout = 60 # 60s @request_timeout = 60 # 60s
@connect_timeout = 5 # 5s @connect_timeout = 10 # 10s
@user_agent = "WPScan v#{WPSCAN_VERSION} (http://wpscan.org)" @user_agent = "WPScan v#{WPSCAN_VERSION} (http://wpscan.org)"
end end

View File

@@ -130,7 +130,7 @@ describe Browser do
headers: { 'User-Agent' => 'SomeUA' }, headers: { 'User-Agent' => 'SomeUA' },
ssl_verifypeer: false, ssl_verifyhost: 0, ssl_verifypeer: false, ssl_verifyhost: 0,
cookiejar: cookie_jar, cookiefile: cookie_jar, cookiejar: cookie_jar, cookiefile: cookie_jar,
timeout: 60, connecttimeout: 5, timeout: 60, connecttimeout: 10,
maxredirs: 3, maxredirs: 3,
referer: nil referer: nil
} }

View File

@@ -2,6 +2,6 @@
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101 Firefox/9.0", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101 Firefox/9.0",
"cache_ttl": 600, "cache_ttl": 600,
"request_timeout": 60, "request_timeout": 60,
"connect_timeout": 5, "connect_timeout": 10,
"max_threads": 20 "max_threads": 20
} }

View File

@@ -3,5 +3,5 @@
"proxy": "127.0.0.1:3038", "proxy": "127.0.0.1:3038",
"cache_ttl": 300, "cache_ttl": 300,
"request_timeout": 60, "request_timeout": 60,
"connect_timeout": 5 "connect_timeout": 10
} }

View File

@@ -4,5 +4,5 @@
"proxy_auth": "user:pass", "proxy_auth": "user:pass",
"cache_ttl": 300, "cache_ttl": 300,
"request_timeout": 60, "request_timeout": 60,
"connect_timeout": 5 "connect_timeout": 10
} }