mirror of https://github.com/grpc/grpc.git
Binder transport: Fix server issue when handling many parallel RPC calls (#29483)
When single closure is scheduled multiple times before it is run, it runs less times than the number of times it is scheduled. As a result, when server receives multiple RPC calls in a very short time frame, `accept_stream_locked` is not correctly called for every RPC call received. We are working on internal server side stress test to make sure this kind of error won't happen again. This commit also uses atomic int for issuing new stream id. Without this there is 10% probability of stream id collision when 128 parallel RPC calls are initiated at the same time.pull/29514/head^2
parent
d4680eb8eb
commit
cea03edc0b
3 changed files with 46 additions and 8 deletions
Loading…
Reference in new issue