-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make HttpOutput.println()
simpler and faster
#12530
base: jetty-12.1.x
Are you sure you want to change the base?
Make HttpOutput.println()
simpler and faster
#12530
Conversation
} | ||
finally | ||
{ | ||
out.release(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the above write()
call is async, out.release()
may be called before the write is done.
jetty-ee11/jetty-ee11-servlet/src/main/java/org/eclipse/jetty/ee11/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee11/jetty-ee11-servlet/src/main/java/org/eclipse/jetty/ee11/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee11/jetty-ee11-servlet/src/main/java/org/eclipse/jetty/ee11/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee11/jetty-ee11-servlet/src/main/java/org/eclipse/jetty/ee11/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee11/jetty-ee11-servlet/src/main/java/org/eclipse/jetty/ee11/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
@lorban might want to merge from base |
@lorban status report? |
@gregw this can now be resumed, so I'm going to refresh my mind then finalize it. |
77cd88b
to
7ab7eb9
Compare
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
7ab7eb9
to
5f943dc
Compare
HttpOutput.print()
HttpOutput.println()
simpler and faster
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
This PR improves
HttpOutput.println()
by simplifying it, making it faster in most cases and fixes a too early buffer release.