-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Coalesce HTTP/2 HEADERS and DATA writes #2423
Comments
This issue has been automatically marked as stale because it has been a full year without activit. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions. |
See also #3766. |
Fixed with #5222. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the discussion in #2420.
HttpTransport.send()
provides the headers and first content chunk.Introduce a pseudo frame type that contains the info for headers and data. At generation create the headers frame, then the data frame prefix (into the same leased buffer) then it adds the sliced data buffer.
If send only has headers then only send headers. If send only has data then send only data. But if it had both then send both!
It will save a lot and the other end will be faster as well as the headers and data will not be split by writes nor interleaved with other frames.
The text was updated successfully, but these errors were encountered: