[PATCH] [v3]lib/telemetry:fix telemetry conns leak in case of socket write fail

David Marchand david.marchand at redhat.com
Thu Feb 1 16:19:08 CET 2024


On Tue, Jan 30, 2024 at 2:57 AM Shaowei Sun <1819846787 at qq.com> wrote:
>
> Telemetry can only create 10 conns by default, each of which is processed
> by a thread.
>
> When a thread fails to write using socket, the thread will end directly
> without reducing the total number of conns.
>
> This will result in the machine running for a long time, and if there are
> 10 failures, the telemetry will be unavailable
>
Fixes: 2a7d0b872f79 ("telemetry: add upper limit on connections")
Cc: stable at dpdk.org
>
> Signed-off-by: Shaowei Sun <1819846787 at qq.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Ciara Power <ciara.power at intel.com>
> Acked-by: Chengwen Feng <fengchengwen at huawei.com>

Applied, thanks for the fix!


-- 
David Marchand



More information about the dev mailing list