-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
@@ -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) { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Thanks @hwh33! |
For getlantern/lantern-internal#2791
Depends on: