21 Commits

Author SHA1 Message Date
a7b1db5f04 fix: address issues raised from code review 2024-08-09 11:03:28 +10:00
1fd00bcf22 feat: gateway: auto-cleanup of installed filters when ws connection ends 2024-08-09 11:03:28 +10:00
c90cbbd35b fix!: gateway: fix rate limiting, general cleanup
Minor API changes:

* gateway.NewRateLimiterHandler and gateway.NewConnectionRateLimiterHandler have
  been replaced with gateway.NewRateLimitHandler.
* The handlers returned by both gateway.NewRateLimitHandler and the primary
  gateway.Handler return an http.Handler augmented with a Shutdown(ctx) method
  to be used for graceful cleanup of resources.

Fix:

* --per-conn-rate-limit was previously applied as a global rate limiter,
  effectively making it have the same impact as --rate-limit. This change fixes
  the behaviour such that --per-conn-rate-limit is applied as a API call
  limiter within a single connection (i.e. a WebSocket connection). The rate
  is specified as tokens-per-second, where tokens are relative to the expense
  of the API call being made.
2024-08-09 11:03:28 +10:00
526d1ffe82 chore: lint: enable type godoc linting 2024-07-19 11:10:11 +10:00
9e6e7814ab chore: lint: enable function godoc linting 2024-07-19 11:10:11 +10:00
1286d76988 gateway: eth_subscribe support 2023-01-31 10:28:12 +01:00
6491becbe1 rpc: Switch eth_subscribe to reverse calls 2023-01-31 10:28:12 +01:00
eadf8b680c address review 2023-01-13 21:55:14 -05:00
22231dc34f gateway: Limits and proxy for eth_ methods 2023-01-13 20:04:42 +01:00
708618d11c feat: gateway: eth_ api support 2023-01-13 20:04:41 +01:00
27880ece2b feat: support typed errors over RPC 2022-09-27 15:34:01 +00:00
e65fae28de chore: fix imports 2022-06-14 17:00:51 +02:00
84cc1e30fd lint 2022-06-07 10:36:57 -07:00
ea51732163 use key type 2022-06-06 16:37:11 -07:00
e645e8aa7c Merge branch 'master' into rate-limit-gateway 2022-06-01 00:58:23 -07:00
56bde5adf9 Merge pull request #8692 from filecoin-project/feat/health-endpoints
feat: networking: add healthz and livez endpoints
2022-05-30 15:42:06 +02:00
48aa0131bf fix: rpc: readd rpc.discover aliases 2022-05-27 17:03:03 +02:00
444d0b1b8a add healthz and livez endpoints 2022-05-20 18:38:17 -07:00
b30548376b connection rate limiting 2022-05-20 03:40:52 -07:00
a8a9818043 Expose storage states on the metrics endpoint 2021-10-01 14:45:01 +02:00
188688c9ce refactor gateway rpc. 2021-05-23 18:37:53 +01:00