Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

flush every chunk only for chunked responses#245

Merged
dlecan merged 2 commits into
play2war:developfrom
yanns:flush-optimization
Jun 2, 2014
Merged

flush every chunk only for chunked responses#245
dlecan merged 2 commits into
play2war:developfrom
yanns:flush-optimization

Conversation

@yanns

@yanns yanns commented May 14, 2014

Copy link
Copy Markdown
Member

let the servlet container buffer the response.
Based on feedback from @jroper:
yanns@b580b8c#commitcomment-6312809
yanns@b580b8c#commitcomment-6312832

yanns referenced this pull request in yanns/play2-war-plugin May 14, 2014
The handling of a play result in the default request handler is moved
to pushPlayResultToServletOS. This handling stayed the same. This change
should not have any impact on the existing servlet wrapper for servlet < 3.1.

For servlet 3.1, pushPlayResultToServletOS is overwritten to provide a
non-blocking asynchron handling based on the new WriteListener.
@dlecan

dlecan commented May 14, 2014

Copy link
Copy Markdown
Member

Good work !

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

key.equalsIgnoreCase(...) would be technically correct here. Though we don't do it in Play... we probably should. I think this is going to be fixed by a PR in the works that converts the headers map to be case insensitive.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thanks, added a commit for this.

@yanns

yanns commented Jun 2, 2014

Copy link
Copy Markdown
Member Author

@dlecan can you merge this pull or do you need more info/time?

dlecan added a commit that referenced this pull request Jun 2, 2014
flush every chunk only for chunked responses
@dlecan dlecan merged commit 2259ea6 into play2war:develop Jun 2, 2014
@dlecan dlecan added this to the v1.2 milestone Jun 11, 2014
@yanns yanns deleted the flush-optimization branch June 23, 2014 07:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants