From de091068e891a2b57c6dfb1996e1443333c914ef Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Mon, 27 Apr 2015 21:56:43 -0700 Subject: [PATCH] Removing quotas, will handle with iptables --- pkg/api/api_router.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/api/api_router.go b/pkg/api/api_router.go index bf9c370eb..04d8b6ef6 100644 --- a/pkg/api/api_router.go +++ b/pkg/api/api_router.go @@ -20,8 +20,6 @@ import ( "log" "net/http" - "time" - router "github.com/gorilla/mux" "github.com/minio-io/minio/pkg/api/config" "github.com/minio-io/minio/pkg/api/quota" @@ -95,10 +93,10 @@ func HTTPHandler(domain string, driver drivers.Driver) http.Handler { h := timeValidityHandler(mux) h = ignoreResourcesHandler(h) h = validateRequestHandler(conf, h) - h = quota.BandwidthCap(h, 25*1024*1024, time.Duration(30*time.Minute)) - h = quota.BandwidthCap(h, 100*1024*1024, time.Duration(24*time.Hour)) - h = quota.RequestLimit(h, 100, time.Duration(30*time.Minute)) - h = quota.RequestLimit(h, 1000, time.Duration(24*time.Hour)) + // h = quota.BandwidthCap(h, 25*1024*1024, time.Duration(30*time.Minute)) + // h = quota.BandwidthCap(h, 100*1024*1024, time.Duration(24*time.Hour)) + // h = quota.RequestLimit(h, 100, time.Duration(30*time.Minute)) + // h = quota.RequestLimit(h, 1000, time.Duration(24*time.Hour)) h = quota.ConnectionLimit(h, 5) return h }