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

test: create a new bytes reader instead of sharing bytes buffer #511

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

kruskall
Copy link
Member

http requests are sharing a bytes buffer causing the request to fail with

Post "http://localhost:39859/intake/v2/events": http: ContentLength=1082 with Body length 0

Update test to create a bytes reader for each request and check the error to avoid failing silently.
Close the response body to avoid leaks or leaving the client in a bad state.

http requests are sharing a bytes buffer causing the request to fail with

Post "http://localhost:39859/intake/v2/events": http: ContentLength=1082 with Body length 0

Update test to create a bytes reader for each request and check the
error to avoid failing silently.
Close the response body to avoid leaks or leaving the client in a
bad state.
@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Jul 25, 2024
@kruskall kruskall requested review from a team and removed request for a team July 25, 2024 11:15
Copy link
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

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

LGTM

@kruskall kruskall merged commit d4726cd into elastic:main Jul 25, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants