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

statsd: add support for Windows Pipes #182

Merged
merged 5 commits into from Feb 10, 2021
Merged

statsd: add support for Windows Pipes #182

merged 5 commits into from Feb 10, 2021

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Feb 8, 2021

This change adds support for Windows Named Pipes. They may be used when
this option is enabled in the Datadog Agent.

@gbbr gbbr added this to the Next milestone Feb 9, 2021
@gbbr gbbr marked this pull request as ready for review February 9, 2021 09:36
@gbbr gbbr requested a review from hush-hush February 9, 2021 10:15
This change adds support for Windows Named Pipes. They may be used when
this option is [enabled in the Datadog
Agent](DataDog/datadog-agent#6830).
Copy link
Member

@hush-hush hush-hush left a comment

Choose a reason for hiding this comment

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

Could we also update the comment line 370 of statsd/statsd.go ?

Other than this an the few comments it looks ready to go.

statsd/statsd.go Show resolved Hide resolved
statsd/statsd.go Show resolved Hide resolved
statsd/pipe.go Outdated Show resolved Hide resolved
gbbr and others added 2 commits February 10, 2021 11:27
Co-authored-by: Lucas Pimentel-Ordyna <lucas.pimentel@datadoghq.com>
@gbbr gbbr requested a review from hush-hush February 10, 2021 09:29
@gbbr gbbr merged commit 2c5dbc8 into master Feb 10, 2021
@gbbr gbbr deleted the gbbr/winpipe branch February 10, 2021 09:53
}

func newWindowsPipeWriter(pipepath string) (*pipeWriter, error) {
conn, err := winio.DialPipe(pipepath, nil)

Choose a reason for hiding this comment

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

What happens if the connexion is temporary lost between the client and the server?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in #185

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.

None yet

4 participants