api: fix rx timeout thread busy loop after reconnect 42/40442/2
authorVladislav Grishenko <themiron@yandex-team.ru>
Sat, 13 Mar 2021 10:17:03 +0000 (15:17 +0500)
committerOle Tr�an <otroan@employees.org>
Tue, 2 Apr 2024 06:56:37 +0000 (06:56 +0000)
commitb24ff24da9d1dab962b7590b6324a2135ae46a26
tree026b5df53d5c6a6de3bdb616832a042178906586
parente53e29684151330811777135be2d62a564e3664d
api: fix rx timeout thread busy loop after reconnect

After memclnt api client disconnect, read timeout is set to zero
and stays the same even after same client reconnect. It causes
client process to spin in timeout loop up to 100% cpu.
Fix it by resetting timeout process state upon every (re)connect.

Type: fix
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: I56812972a69c343f869eebbdfebdcbefd3d201e0
src/vpp-api/client/client.c