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

Flush control frames; don't flush user frames. #505

Merged
merged 1 commit into from
Feb 2, 2014
Merged

Flush control frames; don't flush user frames. #505

merged 1 commit into from
Feb 2, 2014

Conversation

codefromthecrypt
Copy link

This change fixes a bug where during a bench, MockWebServer got an EOFException trying to read the http/2 connection header.

Let the application layer decide when to flush on data. Ideally we flush when we're done sending a full request (headers and body), and that's all. Control frames, such as the connection header need to by flushed immediately.

@swankjesse
Copy link
Member

LGTM

codefromthecrypt pushed a commit that referenced this pull request Feb 2, 2014
…sh-user-frames

Flush control frames; don't flush user frames.
@codefromthecrypt codefromthecrypt merged commit 810a917 into square:master Feb 2, 2014
@codefromthecrypt codefromthecrypt deleted the flush-control-frames-dont-flush-user-frames branch February 2, 2014 00:59
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