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

master: Support Direct Byte Buffers #348

Merged
merged 1 commit into from
Jul 20, 2016
Merged

master: Support Direct Byte Buffers #348

merged 1 commit into from
Jul 20, 2016

Conversation

tpounds
Copy link
Contributor

@tpounds tpounds commented Feb 21, 2016

Support using direct byte buffers in the internal Jetty buffer pool (see: issue #351).

Signed-off-by: Trevor Pounds <trevor.pounds@gmail.com>
@@ -64,6 +64,7 @@
private boolean _delayDispatchUntilContent = true;
private boolean _persistentConnectionsEnabled = true;
private int _maxErrorDispatches = 10;
private boolean _useDirectByteBuffers = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a single boolean is too coarse a switch. Direct buffers may be beneficial for request, but not response headers/chunks of vice versa.

Perhaps an enum set to say which types of buffers are direct or not.

Also, currently ChannelEndPoint just returns true for isOptimizedForDirectBuffers, it may be best to have to influenced by this kind of configuration also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gregw Really great feedback! I agree a single flag is too coarse. I'll also look into the ChannelEndPoint issue. I'll mull over some ideas and provide an update once I have something more concrete.

@gregw
Copy link
Contributor

gregw commented Mar 4, 2016

closed #349 so once we agree on a master patch, we can cherry pick back to 9.3

@gregw gregw merged commit 6052853 into jetty:master Jul 20, 2016
@tpounds tpounds deleted the master-support-direct-byte-buffers branch February 27, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants