Set Retry-After header

This commit is contained in:
Jakob Borg
2015-11-13 10:14:19 +01:00
parent 7d00722bbf
commit 96b5c2ae00
4 changed files with 51 additions and 2 deletions

View File

@@ -14,6 +14,12 @@ import (
"github.com/thejerf/suture"
)
const (
minNegCache = 60 // seconds
maxNegCache = 3600 // seconds
maxDeviceAge = 7 * 86400 // one week, in seconds
)
var (
lruSize = 10240
limitAvg = 5