Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88b9ab41 authored by Yifan Hong's avatar Yifan Hong Committed by Automerger Merge Worker
Browse files

Merge "binderLibTest: fix SYN flooding again." am: 04b72fba am: 48e6351f

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1734536

Change-Id: I8e73e08aa1506c068976ec100523eaaa255079cd
parents e80bb14e 48e6351f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1288,7 +1288,7 @@ TEST_P(BinderLibRpcClientTest, Test) {
    bool start = false;

    auto threadFn = [&](size_t threadNum) {
        usleep(threadNum * 10 * 1000); // threadNum * 10ms. Need this to avoid SYN flooding.
        usleep(threadNum * 50 * 1000); // threadNum * 50ms. Need this to avoid SYN flooding.
        auto rpcSession = RpcSession::make();
        ASSERT_TRUE(rpcSession->setupInetClient("127.0.0.1", port));
        auto rpcServerBinder = rpcSession->getRootObject();