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 out-of-order write in HttpStreamsHandler #9416

Merged
merged 1 commit into from
Jun 8, 2023
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Jun 8, 2023

HttpStreamsHandler delays writing the first HttpContent to when the request has been fully written. The second HttpContent was not delayed however, so when writing the request took time (apparently with TLS?), the second HttpContent was written before the first.

This patch delays all further writes (normal, complete and error) until the first content has been written.

Should fix micronaut-projects/micronaut-tracing#316

@graemerocher
Copy link
Contributor

in retrospect can you target 3.9.x the new will manually back port to avoid the build issues

@yawkat yawkat changed the base branch from 3.8.x to 3.9.x June 8, 2023 10:45
HttpStreamsHandler delays writing the first HttpContent to when the request has been fully written. The second HttpContent was not delayed however, so when writing the request took time (apparently with TLS?), the second HttpContent was written before the first.

This patch delays all further writes (normal, complete and error) until the first content has been written.

Should fix micronaut-projects/micronaut-tracing#316
@sonarcloud
Copy link

sonarcloud bot commented Jun 8, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

63.3% 63.3% Coverage
0.0% 0.0% Duplication

@graemerocher graemerocher merged commit 2c1bee6 into 3.9.x Jun 8, 2023
@graemerocher graemerocher deleted the streams-order branch June 8, 2023 12:20
@graemerocher
Copy link
Contributor

now we need a back port PR to 3.8.x that also fixes the build

@yawkat
Copy link
Member Author

yawkat commented Jun 8, 2023

@graemerocher the streams-order branch is still based on 3.8, so it can pr fine to 3.8.x. but i dont know how to fix the build.

@graemerocher
Copy link
Contributor

it is a matter of upgrading to the latest patch releases of the build plugins used by that branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants