open-consul/vendor
Pierre Souchay f77182aa51
Upgrade go-connlimit to v0.3.0 / return http 429 on too many connections (#8221)
Fixes #7527

I want to highlight this and explain what I think the implications are and make sure we are aware:

* `HTTPConnStateFunc` closes the connection when it is beyond the limit. `Close` does not block.
* `HTTPConnStateFuncWithDefault429Handler(10 * time.Millisecond)` blocks until the following is done (worst case):
  1) `conn.SetDeadline(10*time.Millisecond)` so that
  2) `conn.Write(429error)` is guaranteed to timeout after 10ms, so that the http 429 can be written and 
  3) `conn.Close` can happen

The implication of this change is that accepting any new connection is worst case delayed by 10ms. But only after a client reached the limit already.
2020-07-03 09:25:07 +02:00
..
cloud.google.com/go
github.com Upgrade go-connlimit to v0.3.0 / return http 429 on too many connections (#8221) 2020-07-03 09:25:07 +02:00
go.opencensus.io
go.uber.org/goleak Add a test for go routine leaks 2020-06-24 17:09:50 -04:00
golang.org/x Update gopsutil (#8208) 2020-07-01 14:47:56 +02:00
google.golang.org connect: upgrade github.com/envoyproxy/go-control-plane to v0.9.5 (#8165) 2020-06-23 15:19:56 -05:00
gopkg.in acl: add auth method for JWTs (#7846) 2020-05-11 20:59:29 -05:00
k8s.io Update go-discover dependency (#7731) 2020-05-04 10:59:48 -04:00
sigs.k8s.io/yaml Update go-discover dependency (#7731) 2020-05-04 10:59:48 -04:00
modules.txt Upgrade go-connlimit to v0.3.0 / return http 429 on too many connections (#8221) 2020-07-03 09:25:07 +02:00