[Bug 1364] telemetry conns may leak in certain situation
bugzilla at dpdk.org
bugzilla at dpdk.org
Sat Jan 13 06:59:35 CET 2024
https://bugs.dpdk.org/show_bug.cgi?id=1364
Bug ID: 1364
Summary: telemetry conns may leak in certain situation
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: other
Assignee: dev at dpdk.org
Reporter: 1819846787 at qq.com
Target Milestone: ---
Every time the telemetry server successfully returns from the accept, it
atomically increases the value of num_clients(if < MAX_CONNECTIONS) and then
executes pthread_create to create a thread to execute the client_handler
function. In this function, some information will be written to the client. If
the write fails, the thread returns NULL without atomically reducing
num_clients, this will cause the Telemetry server to run for a period of time,
and the value of num_clients will be greater than 10, resulting in telemetry
being unavailable.
Therefore, the decrease in atomicity v2_clients should occur after the write()
failure
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240113/06645e56/attachment.htm>
More information about the dev
mailing list