Skip to content

feat: add listen bound callback and 503 status constant#16

Merged
ruoka merged 1 commit into
masterfrom
feat/http-listen-bound-callback
Jul 16, 2026
Merged

feat: add listen bound callback and 503 status constant#16
ruoka merged 1 commit into
masterfrom
feat/http-listen-bound-callback

Conversation

@ruoka

@ruoka ruoka commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add optional on_bound callback to http::server::listen(host, port, on_bound)
  • Invoke after acceptor binds, before the accept loop
  • Add status_service_unavailable for readiness probes

Needed by YarDB server lifecycle / GET /ready 503 behavior.

Test plan

  • YarDB [yardb] suite passes against this commit

Made with Cursor

http::server::listen(host, port, on_bound) invokes on_bound after the
acceptor binds. Adds status_service_unavailable for readiness probes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ruoka
ruoka merged commit 6312cb3 into master Jul 16, 2026
4 checks passed
@ruoka
ruoka deleted the feat/http-listen-bound-callback branch July 16, 2026 05:19
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