Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x
This commit is contained in:
commit
ac39c2599a
|
@ -31,10 +31,10 @@ import org.eclipse.jetty.websocket.core.WebSocketComponents;
|
|||
|
||||
public abstract class WebSocketNegotiation
|
||||
{
|
||||
private final Request baseRequest;
|
||||
private final HttpServletRequest request;
|
||||
private final HttpServletResponse response;
|
||||
private final WebSocketComponents components;
|
||||
private Request baseRequest;
|
||||
private String version;
|
||||
private List<ExtensionConfig> offeredExtensions;
|
||||
private List<ExtensionConfig> negotiatedExtensions;
|
||||
|
@ -54,6 +54,11 @@ public abstract class WebSocketNegotiation
|
|||
return baseRequest;
|
||||
}
|
||||
|
||||
public void upgrade()
|
||||
{
|
||||
this.baseRequest = null;
|
||||
}
|
||||
|
||||
public HttpServletRequest getRequest()
|
||||
{
|
||||
return request;
|
||||
|
|
|
@ -167,6 +167,7 @@ public abstract class AbstractHandshaker implements Handshaker
|
|||
// Save state from request/response and remove reference to the base request/response.
|
||||
upgradeRequest.upgrade();
|
||||
upgradeResponse.upgrade();
|
||||
negotiation.upgrade();
|
||||
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("upgrade connection={} session={} framehandler={}", connection, coreSession, handler);
|
||||
|
|
Loading…
Reference in New Issue