mirror of
https://github.com/minio/minio.git
synced 2026-11-02 08:21:43 +00:00
Adding connection limits
This commit is contained in:
1 parent
e68e0c28f7
commit
64f7d04cd1
2 files changed
+77
-1
No files matched your search
@@ -92,8 +92,10 @@ func HTTPHandler(domain string, driver drivers.Driver) http.Handler {
|
||||
}
|
||||
|
||||
h := validateHandler(conf, ignoreResourcesHandler(mux))
|
||||
h = quota.BandwidthCap(h, 256*1024*1024, time.Duration(30*time.Minute))
|
||||
h = quota.BandwidthCap(h, 1*1024*1024*1024, time.Duration(30*time.Minute))
|
||||
h = quota.BandwidthCap(h, 1024*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
|
||||
}
|
||||
Reference in new issue
Block a user