DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1364] telemetry conns may leak in certain situation
@ 2024-01-13  5:59 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2024-01-13  5:59 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

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@dpdk.org
          Reporter: 1819846787@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.

[-- Attachment #2: Type: text/html, Size: 3066 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-13  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-13  5:59 [Bug 1364] telemetry conns may leak in certain situation bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).