jetty.project
jetty.project copied to clipboard
Fix issues with WebSocket UpgradeRequest after upgrade is complete
trafficstars
Issue https://github.com/jetty/jetty.project/issues/11294
- Ensure that
JetterServerUpgradeRequestandJetterServerUpgradeResponseare only used for the webscoket negotiation, and are not available from theUpgradeRequestandUpgradeResponsewhich can be obtained from theSession. - The
UpgradeRequestandUpgradeResponseinstances from theSessionare nowCompletedUpgradeRequest, which will copy any information it needs so it is not accessing the coreRequest/Responseafter the upgrade. - Wrap the servlet request/response as a Core request/response before it is passed to the
WebSocketHandshaker. - Various other cleanups.