This commit is part of the websocket integration in Odoo.
It focuses on implementing rate limiting to the incoming
websocket messages. When opening a connection, a burst of messages
is allowed. When requests are received too fast, an exception is
raised and the websocket is closed.
Two config parameters are added to customize the rate limtier
behavior:
- websocket_rate_limit_delay: Integer specifying the seconds that
should space out two requests.
- websocket_rate_limit_burst: Integer specifying how many websocket
frames can be accepted in excess of the specified rate.
Part-of: odoo/odoo#75510
6 lines
159 B
Python
6 lines
159 B
Python
from . import common
|
|
from . import test_assetsbundle
|
|
from . import test_health
|
|
from . import test_websocket_caryall
|
|
from . import test_websocket_rate_limiting
|