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

Bruce Richardson bruce.richardson at intel.com
Fri Jan 19 12:54:25 CET 2024


On Fri, Jan 19, 2024 at 07:40:00PM +0800, sunshaowei01 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
> 
> Signed-off-by: sunshaowei01 <1819846787 at qq.com>
> ---

Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list