This commit is contained in:
@@ -64,7 +64,7 @@ public abstract class WebSocketServlet extends HttpServlet {
|
|||||||
|
|
||||||
protected WebSocketEngine engine;
|
protected WebSocketEngine engine;
|
||||||
|
|
||||||
final void preInit(HttpContext context, AnyValue conf) {
|
public final void preInit(HttpContext context, AnyValue conf) {
|
||||||
InetSocketAddress addr = context.getServerAddress();
|
InetSocketAddress addr = context.getServerAddress();
|
||||||
this.engine = new WebSocketEngine(addr.getHostString() + ":" + addr.getPort() + "-[" + name() + "]", this.node, logger);
|
this.engine = new WebSocketEngine(addr.getHostString() + ":" + addr.getPort() + "-[" + name() + "]", this.node, logger);
|
||||||
this.node.putWebSocketEngine(engine);
|
this.node.putWebSocketEngine(engine);
|
||||||
@@ -72,7 +72,7 @@ public abstract class WebSocketServlet extends HttpServlet {
|
|||||||
this.engine.init(conf);
|
this.engine.init(conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
final void postDestroy(HttpContext context, AnyValue conf) {
|
public final void postDestroy(HttpContext context, AnyValue conf) {
|
||||||
this.node.destroy(conf);
|
this.node.destroy(conf);
|
||||||
super.destroy(context, conf);
|
super.destroy(context, conf);
|
||||||
engine.close();
|
engine.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user