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

Updated to latest packetforward #310

Merged
merged 9 commits into from
May 31, 2019
Merged

Updated to latest packetforward #310

merged 9 commits into from
May 31, 2019

Conversation

oxtoacart
Copy link
Contributor

@oxtoacart oxtoacart commented May 22, 2019

.gitignore Show resolved Hide resolved
go.mod Show resolved Hide resolved
@@ -583,7 +583,9 @@ func TestDirectOK(t *testing.T) {
if !assert.NoError(t, err) {
t.FailNow()
}
assert.Equal(t, http.StatusBadGateway, resp.StatusCode)
if !assert.Equal(t, http.StatusBadRequest, resp.StatusCode) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This changed because of a change in the Go standard library.

BufferPoolSize: 50 * 1024 * 1024,
})
if err != nil {
log.Errorf("Error configuring packet forwarding: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this function not return an error? It seems like ListenAndServe (the caller) would want to know about this error and return it to its own caller.

I realize that this is not a change introduced by this PR. I just noticed it and was curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want the server to still be able to start and serve normal traffic even if this piece doesn't work.

Copy link
Contributor

@hwh33 hwh33 left a comment

Choose a reason for hiding this comment

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

Looks good!

I left a comment, but it's a question about something unrelated to this PR.

@oxtoacart
Copy link
Contributor Author

Thanks @hwh33!

@oxtoacart oxtoacart merged commit d43c553 into master May 31, 2019
@oxtoacart oxtoacart deleted the ox/gonat branch May 31, 2019 21:02
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

2 participants