commit | 389a5fe16c9a0d6240ae171450ef8ac7443662e7 | [log] [tgz] |
---|---|---|
author | chiachangwang <chiachangwang@google.com> | Fri Jul 07 04:41:22 2023 +0000 |
committer | chiachangwang <chiachangwang@google.com> | Fri Jul 07 07:05:17 2023 +0000 |
tree | 0093367e7cecc5ed6d94bb090433bb9b33e824fb | |
parent | b9547712f6e5d9ef3c1bf87fe040e3e796515bf7 [diff] |
Duplicate the fd instead of reference The mFd member was assigned with the original fd. When the auto Keepalive was closed as system tried to create another auto Keepalive, the real fd would be closed unexpected. The fd assignment should come from a duplicate as what the code does for auto keepalvie. Bug: 290094178 Test: atest FrameworksNetTests Test: atest android.net.cts.ConnectivityManagerTest Change-Id: Ibc153c3f37f9e755446179d3b67178335bc2633d