-
Notifications
You must be signed in to change notification settings - Fork 103
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: flush writes to http response on every chunk #743
Conversation
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.
Nice improvement! ❤️
Could you introduce an entry in changelog and any test to cover this scenario? If this is coverable with unit test it'd be nice, if not, we also execute e2e test on each PR/commit.
There is also a problem with DCO, could you sign your commits please? it's a requirement for us
Thanks will work on your comments |
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.
Could you add a unit test for this?
CHANGELOG.md
Outdated
@@ -34,6 +34,7 @@ This changelog keeps track of work items that have been completed and are ready | |||
- **Operator**: Remove ScaledObject `name` & `app` custom labels ([#717](https://github.com/kedacore/http-add-on/issues/717)) | |||
- **Scaler**: Provide graceful shutdown for grpc server on SIGINT and SIGTERM ([#731](https://github.com/kedacore/http-add-on/issues/731)) | |||
- **Scaler**: remplement custom interceptor metrics ([#718](https://github.com/kedacore/http-add-on/issues/718)) | |||
- **Interceptor**: Add support for streaming responses ([#726](https://github.com/kedacore/http-add-on/issues/743)) |
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.
Please, sort this alphabetically and update the id too
- **Interceptor**: Add support for streaming responses ([#726](https://github.com/kedacore/http-add-on/issues/743)) | |
- **Interceptor**: Add support for streaming responses ([#742](https://github.com/kedacore/http-add-on/issues/https://github.com/kedacore/http-add-on/issues/742)) |
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.
fixed
Hi @itayariel |
hey @JorTurFer I tried to write unit tests, but didn't a find nice a way to test the fix, do you have any suggestion? |
CHANGELOG.md
Outdated
@@ -34,7 +34,7 @@ This changelog keeps track of work items that have been completed and are ready | |||
- **Operator**: Remove ScaledObject `name` & `app` custom labels ([#717](https://github.com/kedacore/http-add-on/issues/717)) | |||
- **Scaler**: Provide graceful shutdown for grpc server on SIGINT and SIGTERM ([#731](https://github.com/kedacore/http-add-on/issues/731)) | |||
- **Scaler**: remplement custom interceptor metrics ([#718](https://github.com/kedacore/http-add-on/issues/718)) | |||
- **Interceptor**: Add support for streaming responses ([#726](https://github.com/kedacore/http-add-on/issues/743)) | |||
- **Interceptor**: Add support for streaming responses ([#743](https://github.com/kedacore/http-add-on/issues/742)) |
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.
- **Interceptor**: Add support for streaming responses ([#743](https://github.com/kedacore/http-add-on/issues/742)) | |
- **Interceptor**: Add support for streaming responses ([#742](https://github.com/kedacore/http-add-on/issues/742)) |
The recorder used for the logginResponseWritter unit tests has a flag to know if flush has been called |
any update on this? |
Signed-off-by: Itay Ariel <[email protected]> Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
This pr enables streaming responses using the proxy code
Currently the logging middleware breaks streaming and responses are sent only upon completion
Checklist
README.md
docs/
directoryFixes #742