WebSocketServlet的maxconns改成wsmaxconns

This commit is contained in:
Redkale
2017-11-13 10:16:50 +08:00
parent 97f43a4d8d
commit c6d83440bb

View File

@@ -63,7 +63,7 @@ public abstract class WebSocketServlet extends HttpServlet implements Resourcabl
protected int liveinterval = DEFAILT_LIVEINTERVAL;
protected int maxconns = 0;
protected int wsmaxconns = 0;
@Resource(name = "jsonconvert")
protected Convert jsonConvert;
@@ -112,7 +112,7 @@ public abstract class WebSocketServlet extends HttpServlet implements Resourcabl
}
//存在WebSocketServlet则此WebSocketNode必须是本地模式Service
this.node.localEngine = new WebSocketEngine("WebSocketEngine-" + addr.getHostString() + ":" + addr.getPort() + "-[" + resourceName() + "]", this.single, context, liveinterval, maxconns, this.node, this.sendConvert, logger);
this.node.localEngine = new WebSocketEngine("WebSocketEngine-" + addr.getHostString() + ":" + addr.getPort() + "-[" + resourceName() + "]", this.single, context, liveinterval, wsmaxconns, this.node, this.sendConvert, logger);
this.node.init(conf);
this.node.localEngine.init(conf);
}