Skip to content

refactor(http): replace nanosleep polling in http_live_drain with condvar wait - #424

Merged
gg582 merged 1 commit into
devfrom
refactor/http-live-drain
Oct 20, 2026
Merged

gg582 merged 1 commit into
devfrom
refactor/http-live-drain

Conversation

@gg582

@gg582 gg582 commented Oct 19, 2026

Copy link
Copy Markdown
Member

Replaces the 2 ms nanosleep polling loop in http_live_drain() with a hybrid atomic + condition variable wait (g_draining, g_drain_lock, g_drain_cond) so normal request completion remains lock-free while shutdown waits without polling.

@gg582
gg582 force-pushed the refactor/http-live-drain branch from fcbde4a to 6e4ad33 Compare October 20, 2026 00:05
@gg582
gg582 force-pushed the refactor/http-live-drain branch from 6e4ad33 to c7b4a10 Compare October 20, 2026 01:06
@gg582
gg582 merged commit 29f5804 into dev Oct 20, 2026
26 checks passed
gg582 added a commit that referenced this pull request Oct 20, 2026
@gg582
gg582 deleted the refactor/http-live-drain branch October 20, 2026 03:21
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