Added a lock to serialize chaps requests.
The lock serializes requests at the chaps client proxy layer. This
fixes a problem where all the requests were being sent to chapsd and the
chapsd dispatcher flooded and dropped requests.
A replay test has been added to p11_replay which floods the dispatcher
in the same way Chrome does.
BUG=chromium:152655
TEST=Run all unit tests.
Run 'p11_replay --digest_test' and ensure there is no five minute
hang.
Change-Id: I5ee851ec0f4a88d72c561ec8a3674b487c78bd8d
Reviewed-on: https://gerrit.chromium.org/gerrit/37546
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Commit-Ready: Darren Krahn <dkrahn@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
3 files changed