Skip to content

Analyze and improve Authd connection management #28908

Open
wazuh/qa-integration-framework
#338
@fdalmaup

Description

@fdalmaup

Description

As part of efforts to improve agent registration, it was found that the remote server thread may present an unexpected behavior when handling multiple connections to it:

/* Thread for remote server */
void* run_remote_server(__attribute__((unused)) void *arg) {

Since some delays may arise under heavy load conditions where multiple connections are being opened, the sockets management using the select function needs to be reviewed.

Tasks

  • Analysis of the code and reproduction of the potential bug. (A script simulating the connections might be required to achieve this)
  • Improvements proposal.
  • Development of the improvements.
  • Unit tests update.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Pending final review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions