Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for already-listening sockets #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shivak
Copy link

@shivak shivak commented May 11, 2023

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