diff options
author | Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com> | 2020-09-23 17:11:54 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | 43c8c18c5130b5d4dfdddcb0b4c61a9155f65b86 (patch) | |
tree | 731aa1dda82c1d0f70cab8172366d10bf5a8eac8 /automotive-dlt.spec.in | |
parent | f374831ed49803d092e3024f0d86090b4e44eb55 (diff) | |
download | DLT-daemon-43c8c18c5130b5d4dfdddcb0b4c61a9155f65b86.tar.gz |
libdlt: Use poll to avoid CPU high load
Use timeout of polling as time for retry.
In case of timeout or failure of polling,
continue to close the socket.
It could take some times to get the socket is shutdown
So it means there could be some data available to read.
Try to consume the data and poll the socket again.
If read fails, time to close the socket then.
Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to 'automotive-dlt.spec.in')
0 files changed, 0 insertions, 0 deletions