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

allow-local-unix-socket #404

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nicksanford
Copy link

No description provided.

@nicksanford nicksanford marked this pull request as draft February 10, 2025 02:02
@@ -293,6 +293,9 @@ defmodule GRPC.Server.Adapters.Cowboy do
:undefined ->
raise "undefined address for ranch server"

:local ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the other PR, please add tests for the change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe when using :local, the handling of the address would be a bit different as it needs the socket file returned in port to decide which is the unix file descriptor handling the connection

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, seeing as this is only used in logs, we can perhaps add that info to Logger.metadata and return "local" as it is now.

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.

2 participants