thrownewIllegalStateException("Unable to start WebSocketServerFactory",ex);
}
}
}
}
@Override
publicvoidstop(){
if(isRunning()){
this.running=false;
try{
this.factory.stop();
}
catch(Exceptionex){
thrownewIllegalStateException("Unable to stop Jetty WebSocketServerFactory",ex);
synchronized(this.lifecycleMonitor){
if(isRunning()){
try{
this.factory.stop();
}
catch(Exceptionex){
thrownewIllegalStateException("Failed to stop WebSocketServerFactory",ex);
}
finally{
this.running=false;
}
}
}
}
@Override
publicbooleanisRunning(){
returnthis.running;
synchronized(this.lifecycleMonitor){
returnthis.running;
}
}
@Override
@ -103,25 +110,20 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Life
@@ -103,25 +110,20 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Life
@ -137,4 +139,17 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Life
@@ -137,4 +139,17 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Life
@ -66,7 +66,7 @@ public abstract class AbstractWebSocketHandlerIntegrationTests {
@@ -66,7 +66,7 @@ public abstract class AbstractWebSocketHandlerIntegrationTests {
@ -66,7 +65,11 @@ public class BasicWebSocketHandlerIntegrationTests extends AbstractWebSocketHand
@@ -66,7 +65,11 @@ public class BasicWebSocketHandlerIntegrationTests extends AbstractWebSocketHand