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

feat: look for the File() method instead of assuming TCP or Unix Listeners #318

Closed
wants to merge 3 commits into from
Closed

feat: look for the File() method instead of assuming TCP or Unix Listeners #318

wants to merge 3 commits into from

Conversation

jvilhuber
Copy link

@jvilhuber jvilhuber commented Mar 4, 2024

Make the underlying listeners more generic, by looking for an interface instead of the type. This makes things more generic and extensible.

What type of PR is this?

feat: A new feature/optimization

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: When trying to get the file descriptor from the Listener, just check for the File() method/Interface instead of assuming TCP or Unix Listeners. This is more generic and extensible.
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@jvilhuber jvilhuber requested review from a team as code owners March 4, 2024 12:15
@CLAassistant
Copy link

CLAassistant commented Mar 4, 2024

CLA assistant check
All committers have signed the CLA.

net_listener.go Show resolved Hide resolved
@jvilhuber jvilhuber requested a review from joway March 19, 2024 08:57
@jvilhuber jvilhuber closed this by deleting the head repository Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants