Avoid one last memory copy

This commit is contained in:
Harshavardhana
2015-05-13 23:05:48 -07:00
parent 55b9a5f5e4
commit 82b043005a
3 changed files with 38 additions and 42 deletions

View File

@@ -63,7 +63,7 @@ func HTTPHandler(driver drivers.Driver) http.Handler {
// 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)
h = quota.ConnectionLimit(h, 4)
h = logging.LogHandler(h)
return h
}