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

Some code cleanup and optimizations when writing data from Jersey #463

Merged
merged 2 commits into from
Mar 1, 2019

Conversation

spericas
Copy link
Member

@spericas spericas commented Feb 28, 2019

More details:

  • Improve code to copy write buffers coming from Jersey
  • Let Netty re-schedule writes on the correct NIO thread
  • Do not use latches to synchronize write threads

Although all tests are passing we should keep an eye for any regressions resulting from these changes.

…om Jersey 2. Let Netty use the correct thread when reading and writing 3. Do not wait for a Netty write to complete before returning to Jersey.

Signed-off-by: Santiago Pericas-Geertsen <Santiago.PericasGeertsen@oracle.com>
…heckstyle changes.

Signed-off-by: Santiago Pericas-Geertsen <Santiago.PericasGeertsen@oracle.com>
@spericas spericas added the enhancement New feature or request label Feb 28, 2019
@spericas spericas assigned spericas and unassigned barchetta Feb 28, 2019
Copy link
Contributor

@batsatt batsatt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@barchetta barchetta left a comment

Choose a reason for hiding this comment

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

If you haven't already, a little extra testing with large payloads might be a good idea. Otherwise LGTM.

@spericas
Copy link
Member Author

spericas commented Mar 1, 2019

@barchetta Completed some manual testing with payloads over 5 MB without seeing any problems. Once the functional tests are in place, we should used those to further stress test these changes.

@spericas spericas merged commit 29814aa into helidon-io:master Mar 1, 2019
@spericas spericas deleted the netty-rw branch May 16, 2019 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants