aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion_search.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/completion_search.coffee')
-rw-r--r--background_scripts/completion_search.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/completion_search.coffee b/background_scripts/completion_search.coffee
index d89eb278..b26194e6 100644
--- a/background_scripts/completion_search.coffee
+++ b/background_scripts/completion_search.coffee
@@ -12,7 +12,7 @@ CompletionSearch =
get: (searchUrl, url, callback) ->
xhr = new XMLHttpRequest()
xhr.open "GET", url, true
- xhr.timeout = 1000
+ xhr.timeout = 2500
xhr.ontimeout = xhr.onerror = -> callback null
xhr.send()
@@ -115,8 +115,8 @@ CompletionSearch =
console.log "GET", url if @debug
catch
suggestions = []
- # We allow failures to be cached too, but remove them after just thirty minutes.
- Utils.setTimeout 30 * 60 * 1000, => @completionCache.set completionCacheKey, null
+ # We allow failures to be cached too, but remove them after just thirty seconds.
+ Utils.setTimeout 30 * 1000, => @completionCache.set completionCacheKey, null
console.log "fail", url if @debug
callback suggestions