This commit is contained in:
Redkale
2018-01-13 10:07:23 +08:00
parent ba5f4a24c7
commit ef5ef4ed72
3 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ public abstract class Server<K extends Serializable, C extends Context, R extend
this.maxconns = config.getIntValue("maxconns", 0);
this.readTimeoutSecond = config.getIntValue("readTimeoutSecond", 0);
this.writeTimeoutSecond = config.getIntValue("writeTimeoutSecond", 0);
this.backlog = parseLenth(config.getValue("backlog"), 8 * 1024);
this.backlog = parseLenth(config.getValue("backlog"), 16 * 1024);
this.maxbody = parseLenth(config.getValue("maxbody"), 64 * 1024);
int bufCapacity = parseLenth(config.getValue("bufferCapacity"), 32 * 1024);
this.bufferCapacity = bufCapacity < 8 * 1024 ? 8 * 1024 : bufCapacity;

View File

@@ -78,7 +78,7 @@ public @interface RestWebSocket {
*
* @return 最大消息体长度
*/
int wsmaxbody() default 16 * 1024;
int wsmaxbody() default 32 * 1024;
/**
* 是否屏蔽该类的转换

View File

@@ -73,7 +73,7 @@ public abstract class WebSocketServlet extends HttpServlet implements Resourcabl
protected int wsmaxconns = 0;
//同RestWebSocket.wsmaxbody
protected int wsmaxbody = 16 * 1024;
protected int wsmaxbody = 32 * 1024;
//同RestWebSocket.anyuser
protected boolean anyuser = false;