diff options
| author | andybg <[email protected]> | 2026-01-15 01:34:18 +0300 |
|---|---|---|
| committer | andybg <[email protected]> | 2026-01-15 01:51:38 +0300 |
| commit | 743db03e460759247cc83b5c9f44cba60416b240 (patch) | |
| tree | 8f24181ad1999ba12e1c3a4afc668f36ebad3a1b /contrib/python/ipython/py2/IPython/utils/module_paths.py | |
| parent | a89de3ba62838e5507976f837a079809b3b5e095 (diff) | |
Add throttling for max inflight error logs
## Problem
Log spam with repeated ``'max inflight of [***] bytes reached, [***] bytes dropped'`` errors appearing multiple times within the same second, causing log flooding.
## Solution
Implemented one-second throttling mechanism for this specific error message to prevent log spam while maintaining accurate counter tracking.
## Testing
- Added `TestMaxInflightBytesThrottling` integration test
- Confirms throttling limits log entries to ≤3 for 50 rapid message drops (vs 50 without throttling)
- Ensures all dropped message counters remain accurate regardless of throttling
commit_hash:58f44ca8ce2b8b416586f8ca7a3d3ca971f1e9cb
Diffstat (limited to 'contrib/python/ipython/py2/IPython/utils/module_paths.py')
0 files changed, 0 insertions, 0 deletions
