mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
e7e1bf444c
This PR is to add the request rate limiter. The solution is to count the request number for each peer for each minute, if the peer exceeds the limit, block the requests for a specified time. Current limits: - Request limited to `5000` requests per minute for each handler. - Penalty blockage time `1-minute` |
||
---|---|---|
.. | ||
communication | ||
handlers | ||
handshake | ||
httpreqresp | ||
peers | ||
service | ||
config_test.go | ||
config.go | ||
discovery.go | ||
gater.go | ||
gossip.go | ||
libp2p_settings.go | ||
msg_id_test.go | ||
msg_id.go | ||
sentinel.go | ||
utils_test.go | ||
utils.go |