Application.shareAsyncGroup
This commit is contained in:
@@ -36,6 +36,7 @@ public class SncpRequestParseTest {
|
||||
SncpContext.SncpContextConfig config = new SncpContext.SncpContextConfig();
|
||||
config.logger = Logger.getLogger(SncpRequestParseTest.class.getSimpleName());
|
||||
config.serverAddress = sncpAddress;
|
||||
config.maxHeader = 16 * 1024;
|
||||
config.maxBody = 1024 * 1024 * 1024;
|
||||
SncpContext context = new SncpContext(config);
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ public class SncpTest {
|
||||
|
||||
private static final String protocol = "SNCP.TCP"; // TCP UDP
|
||||
|
||||
private static final int clientCapacity = protocol.endsWith(".UDP") ? AsyncGroup.UDP_BUFFER_CAPACITY : 8192;
|
||||
private static final int clientCapacity =
|
||||
protocol.endsWith(".UDP") ? ByteBufferPool.DEFAULT_BUFFER_UDP_CAPACITY : 8192;
|
||||
|
||||
private static ResourceFactory factory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user