mirror of https://github.com/grpc/grpc.git
[EventEngine] Respect requested thread pool size (#34904)
The current fixed minimum starting thread count (2 threads), combined
with the fixed thread spawn rate limit of 1/sec, was causing test issues
with some new EventEngine integrations.
For example, this test had a race wherein the alarm destructor was
expected to run within 1 second. In 5% of runs, the 2 EventEngine
threads were otherwise occupied, and it would take around 1 second to
spawn a new thread.
1e15d00ec4/test/cpp/common/alarm_test.cc (L418-L435)
pull/34905/head
parent
3964acc806
commit
920882fbd9
4 changed files with 5 additions and 10 deletions
Loading…
Reference in new issue