telemetry conns may leak in certain situation
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: [email protected]
Reporter: [email protected]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
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.