summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>2020-09-23 17:11:54 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-01-06 09:27:28 +0900
commit43c8c18c5130b5d4dfdddcb0b4c61a9155f65b86 (patch)
tree731aa1dda82c1d0f70cab8172366d10bf5a8eac8 /src/daemon
parentf374831ed49803d092e3024f0d86090b4e44eb55 (diff)
downloadDLT-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 'src/daemon')
0 files changed, 0 insertions, 0 deletions