This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Commit de4535a
Core: Mitigate busy reopen loop in ResumableBidiRpc consuming 100% CPU (#8193)
* Add bidi._Throttle helper class
* Add optional reopen throttling to ResumableBidiRpc
* Enable Bidi reopen throttling in SPM
* Change bidi._Throttle signature
The commit renames the entry_cap parameter to access_limit, and
changes the type of the time_window argument from float to timedelta.1 parent 58f81a9 commit de4535a
2 files changed
Lines changed: 2 additions & 0 deletions
File tree
- google/cloud/pubsub_v1/subscriber/_protocol
- tests/unit/pubsub_v1/subscriber
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
0 commit comments