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

Listen on a Unix domain socket #737

Closed
AlekSi opened this issue Jun 14, 2022 · 2 comments · Fixed by #1214
Closed

Listen on a Unix domain socket #737

AlekSi opened this issue Jun 14, 2022 · 2 comments · Fixed by #1214
Assignees
Labels
code/feature Some user-visible feature is not implemented yet good first issue Good issues for new external contributors
Milestone

Comments

@AlekSi
Copy link
Member

AlekSi commented Jun 14, 2022

There should be a way to configure FerretDB to listen and accept connections on the UNIX domain socket.

Let's add a flag --listen-socket that would contain a single file path to a UNIX socket FerretDB will listen on. Empty value (the default) will disable it. Both --listen-addr and --listen-socket could be given; in that case, FerretDB would listen on both.

  • Integration test is in the scope.
  • Embedded usage (public ferretdb package) is in the scope.
@AlekSi AlekSi added the code/feature Some user-visible feature is not implemented yet label Jun 14, 2022
@Dragomir-Ivanov
Copy link

Dragomir-Ivanov commented Jun 15, 2022

Hello There,
It also work if you make a call to FerretDB API, something like GetEmbedAddress(), and it will return a string containing random(free) listen socket. Then this string could be provided to MongoDB Driver.

Or even a call StartEmbeded(), that will create the listen socket, start listening on, and return its string address, for the Mongo driver to connect,

@AlekSi
Copy link
Member Author

AlekSi commented Jun 15, 2022

I think that comment belongs to #3

@AlekSi AlekSi added not ready Issues that are not ready to be worked on; PRs that should skip CI and removed not ready Issues that are not ready to be worked on; PRs that should skip CI labels Jun 17, 2022
@AlekSi AlekSi assigned AlekSi and w84thesun and unassigned w84thesun Jul 6, 2022
@AlekSi AlekSi added good first issue Good issues for new external contributors hacktoberfest labels Oct 3, 2022
@AlekSi AlekSi added this to the v0.6.0 Alpha milestone Oct 5, 2022
@AlekSi AlekSi changed the title Listen on a UNIX domain socket Listen on a Unix domain socket Oct 5, 2022
@AlekSi AlekSi closed this as completed in 7e62c57 Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/feature Some user-visible feature is not implemented yet good first issue Good issues for new external contributors
Projects
None yet
4 participants