Skip to content

Add support for already-listening sockets - #10

Open
shivak wants to merge 1 commit into
Jarred-Sumner:masterfrom
shivak:bun-direct
Open

Add support for already-listening sockets#10
shivak wants to merge 1 commit into
Jarred-Sumner:masterfrom
shivak:bun-direct

Conversation

@shivak

@shivak shivak commented May 11, 2023

Copy link
Copy Markdown

This is the library backing for Bun.serve({fd}) and Bun.listen({fd}) (see oven-sh/bun#2852)

This relies on changes to uSockets, but I didn't redirect the submodule. To build, either merge Jarred-Sumner/uSockets#3 or use my fork: https://github.com/shivak/uSockets/tree/bun-direct.

An App can now attach directly to an fd which was passed during e.g.
socket activation. This calls the new `us_socket_context_listen_direct`
function in uSockets.
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