Skip to content

Comments

VODAFONE-45: Sysevent daemon getting stuck due to fd & worker exhaustion#230

Open
mohamedakif1 wants to merge 1 commit intordkcentral:developfrom
mohamedakif1:VODAFONE-45
Open

VODAFONE-45: Sysevent daemon getting stuck due to fd & worker exhaustion#230
mohamedakif1 wants to merge 1 commit intordkcentral:developfrom
mohamedakif1:VODAFONE-45

Conversation

@mohamedakif1
Copy link

Reason For Change:
. syseventd accepts client connections and performs synchronous reads/writes on client fds. Without per‑socket send/recv timeouts, a slow, stalled, or misbehaving client can cause write()/read() to block for extended periods.This pins a worker thread in a tight retry loop or prolonged wait, starving other work.
Worker threads were blocked on client socket I/O without timeouts; unhealthy clients starved the pool which makes only thread1/thread2 to be active. patch adds 200 ms per‑socket timeouts, return accurate errno from send routines, and actively evict misbehaving clients via centralized failure handling,

Testing Done:
. Tested the patch integrated image on the stress test of 500 loops of continuous sysevent set of wan status start and stop, sysevent fd count seems to be in limit and sysevent operations are working fine.

Reason For Change:
. syseventd accepts client connections and performs synchronous reads/writes on client fds.
Without per‑socket send/recv timeouts, a slow, stalled, or misbehaving client can cause
write()/read() to block for extended periods.This pins a worker thread in a tight retry
loop or prolonged wait, starving other work.
Worker threads were blocked on client socket I/O without timeouts; unhealthy clients starved
the pool which makes only thread1/thread2 to be active.
patch adds 200 ms per‑socket timeouts, return accurate errno from send routines, and actively
evict misbehaving clients via centralized failure handling,

Testing Done:
. Tested the patch integrated image on the stress test of 500 loops of continuous sysevent set
of wan status start and stop, sysevent fd count seems to be in limit and sysevent operations
are working fine.

Signed-off-by: Mohamed Akif Shaikh <mohamedakif.shaikh@vodafone.com>
@mohamedakif1 mohamedakif1 requested review from a team as code owners February 18, 2026 13:23
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@mohamedakif1
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant