-
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
Implementation of HttpServletRequest.upgrade #5926
Conversation
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.
This is exactly the kind of minimal implementation that I was imagining.
However I think that we need to:
- send a real 101 response
- stop the generator chunking the output and don't have a Transfer-Encoding header
- perhaps do a check or two
Details below
jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Outdated
Show resolved
Hide resolved
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.
Still looking good.... even the ugly dirty bits are not too ugly dirty.... but still some improvements and/or clarifications possible I think
jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java
Outdated
Show resolved
Hide resolved
jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
Outdated
Show resolved
Hide resolved
d44a532
to
5222eb0
Compare
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.
LGTM. @sbordet your thoughts?
jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Outdated
Show resolved
Hide resolved
jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Outdated
Show resolved
Hide resolved
jetty-servlet/src/test/java/org/eclipse/jetty/servlet/ServletUpgradeTest.java
Outdated
Show resolved
Hide resolved
jetty-servlet/src/test/java/org/eclipse/jetty/servlet/ServletUpgradeTest.java
Show resolved
Hide resolved
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
7868027
to
421ed6b
Compare
Fixes jetty-project/tck-run#12