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

Fix backend body close #449

Merged
merged 7 commits into from
Mar 3, 2022
Merged

Fix backend body close #449

merged 7 commits into from
Mar 3, 2022

Conversation

malud
Copy link
Collaborator

@malud malud commented Mar 2, 2022

The backend response body is read based on the related endpoint configuration. If a backend response is referenced as variable, we will read its body and transfer the values to our hcl evaluation. On the other side we won't read without reference. That is causing the issue here, we still have to close the body in this situation, giving back its connection.


Reviewer checklist
  • Read PR description: a summary about the changes is required
  • Changelog updated
  • Documentation: docs/{Reference, Cli, ...}, Docker and cli help/usage
  • Pulled branch, manually tested
  • Verified requirements are met
  • Reviewed the code
  • Reviewed the related tests

@malud malud changed the base branch from master to release.1.7 March 2, 2022 15:51
@malud malud marked this pull request as ready for review March 3, 2022 08:22
@malud malud requested a review from johakoch March 3, 2022 08:52
@johakoch johakoch merged commit 1c23548 into release.1.7 Mar 3, 2022
@johakoch johakoch deleted the fix-backend-body-close branch March 3, 2022 10:40
malud pushed a commit that referenced this pull request Mar 3, 2022
johakoch pushed a commit that referenced this pull request Mar 3, 2022
* Fixup #449 : buffer body for default edge case

* Fixup, ignore situation for websocket configurations

* Add additional testcases
malud pushed a commit that referenced this pull request Mar 7, 2022
* Fix resource leak for non referenced backend responses

* Fixup, except default

* Fixup handle default with response block

* Add test and changelog

* Add additional test cases

* Rename backend label

* Update path and naming
malud pushed a commit that referenced this pull request Mar 7, 2022
* Fixup #449 : buffer body for default edge case

* Fixup, ignore situation for websocket configurations

* Add additional testcases
malud pushed a commit that referenced this pull request Mar 7, 2022
* Fix resource leak for non referenced backend responses

* Fixup, except default

* Fixup handle default with response block

* Add test and changelog

* Add additional test cases

* Rename backend label

* Update path and naming
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.

2 participants