-
Notifications
You must be signed in to change notification settings - Fork 435
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
Revert "Check flusher interface before calling Flush (#479)" #527
Conversation
This reverts commit cf7d15a. This introduced a recursive call to `Flush` in the proxy, which will crash the application.
@@ -95,7 +90,7 @@ func (w *grpcWebResponse) finishRequest(req *http.Request) { | |||
w.copyTrailersToPayload() | |||
} else { | |||
w.WriteHeader(http.StatusOK) | |||
w.Flush() |
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.
@johanbrandhorst whilst we wait for CI to go green on this PR...
...isn't this the root cause of the issue? Shouldn't this be replaced with a safe up-cast on w.wrapped
before calling Flush()
?
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 haven't looked at it in detail, lets discuss after merging the fix.
Given this failure has had an impact on consumers, it implies we are missing a test. @light0x, would you be in a position to help us contribute a test-case which would help us catch this regression in future, please? |
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.
Approved in order to expedite the fix.
Rerunning failed tests |
Given that the 2 failures occurred on older versions of Chrome I am happy to chalk the failure down to BrowerStack flakiness and will use Admin powers to merge. |
This reverts commit cf7d15a.
This introduced a recursive call to
Flush
in the proxy, whichwill crash the application.