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

Support for HTTP pipelining #2591

Merged
merged 10 commits into from
Dec 10, 2020
Merged

Conversation

spericas
Copy link
Member

@spericas spericas commented Dec 9, 2020

This patch ensures that responses are ordered correctly when HTTP pipelining is used. If multiple requests are received over the same connection, the corresponding responses need to be ordered according to the spec. It also affects pipelining over HTTP/2 connections. The crux of the fix is to wait for the previous response to complete before writing data for the current one. Thanks to @olotenko.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas self-assigned this Dec 9, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

Nicely done. Only one suggested change from me.

…om, etc.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas added this to Normal priority in Backlog Dec 9, 2020
@spericas spericas added this to the 2.2.0 milestone Dec 9, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas changed the title WIP: Support for HTTP streaming Support for HTTP streaming Dec 10, 2020
@spericas spericas changed the title Support for HTTP streaming Support for HTTP pipelining Dec 10, 2020
@spericas spericas merged commit 4e86644 into helidon-io:master Dec 10, 2020
Backlog automation moved this from Normal priority to Closed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
  
Closed
Development

Successfully merging this pull request may close these issues.

None yet

5 participants