Pierre Souchay
20d1ea7d2d
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
..
2020-02-06 15:30:58 +01:00
2020-06-17 11:25:29 -04:00
2020-06-26 16:01:30 -04:00
2020-06-15 11:01:25 -04:00
2020-06-30 09:59:07 -04:00
2020-06-16 13:21:11 -04:00
2020-06-19 16:38:14 -04:00
2020-06-24 13:00:15 -04:00
2020-07-02 09:49:49 -04:00
2020-06-17 16:49:46 -04:00
2020-06-16 13:10:11 -04:00
2020-06-04 14:50:52 +02:00
2020-06-24 13:00:14 -04:00
2020-06-24 13:00:14 -04:00
2020-06-16 13:21:11 -04:00
2020-06-24 17:09:50 -04:00
2020-07-01 03:41:44 +01:00
2020-04-28 09:44:26 -04:00
2020-06-24 13:00:14 -04:00
2020-05-28 11:59:58 -04:00
2019-10-29 11:13:36 -07:00
2020-06-16 13:21:11 -04:00
2020-06-24 13:00:14 -04:00
2020-06-17 16:49:46 -04:00
2020-06-17 16:49:46 -04:00
2020-06-17 16:49:46 -04:00
2020-06-24 13:00:14 -04:00
2020-04-28 09:42:46 -04:00
2020-06-30 15:23:29 -04:00
2020-07-03 09:25:07 +02:00
2020-05-28 14:39:37 -04:00
2020-06-16 13:21:11 -04:00
2020-06-15 11:01:25 -04:00
2019-12-09 21:26:41 -05:00
2020-04-20 09:02:35 -05:00
2020-06-05 14:54:29 -07:00
2020-06-15 11:01:25 -04:00
2020-03-31 16:13:44 -04:00
2019-11-21 17:40:29 +00:00
2020-05-19 16:50:14 -04:00
2019-10-29 11:13:36 -07:00
2020-05-29 14:19:16 -04:00
2020-05-29 14:19:16 -04:00
2020-06-16 13:21:11 -04:00
2020-06-15 11:01:25 -04:00
2020-06-24 16:35:23 -05:00
2020-07-01 01:51:16 +01:00
2020-07-01 03:41:44 +01:00
2020-06-16 13:21:11 -04:00
2020-01-28 17:50:41 -06:00
2020-03-09 15:59:02 -05:00
2020-06-16 13:21:11 -04:00
2020-06-15 11:01:25 -04:00
2020-06-24 13:00:14 -04:00
2020-06-16 13:21:11 -04:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-06-17 16:49:46 -04:00
2020-06-24 14:29:21 +02:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-03-31 17:14:55 -04:00
2020-02-13 20:35:09 +01:00
2020-05-19 16:50:14 -04:00
2020-03-09 11:13:40 +01:00
2020-03-31 16:13:44 -04:00
2019-10-29 11:13:36 -07:00
2020-06-16 13:21:11 -04:00
2020-07-01 03:41:44 +01:00
2020-03-31 16:13:44 -04:00
2020-01-28 17:50:41 -06:00
2020-03-09 15:59:02 -05:00
2020-03-09 15:59:02 -05:00
2020-03-31 16:13:44 -04:00
2020-03-31 17:14:55 -04:00
2020-06-16 12:15:57 -04:00
2020-06-16 13:10:11 -04:00
2020-03-05 15:34:55 -05:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-03-31 16:13:44 -04:00
2020-04-13 12:32:57 -04:00
2020-03-31 16:13:44 -04:00
2020-06-19 15:16:00 -04:00
2020-01-24 09:27:25 -05:00
2020-03-31 16:13:44 -04:00
2020-03-09 11:13:40 +01:00
2020-06-24 16:35:23 -05:00
2020-06-24 16:35:23 -05:00
2020-03-31 16:13:44 -04:00
2020-02-07 15:50:24 -06:00
2020-06-16 13:10:11 -04:00
2020-02-07 15:50:24 -06:00
2020-01-28 17:50:41 -06:00
2020-01-28 17:50:41 -06:00