Application.shareAsyncGroup

This commit is contained in:
redkale
2024-09-08 00:17:45 +08:00
parent 9da964657d
commit 2f37dd9c03
10 changed files with 87 additions and 37 deletions

View File

@@ -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);

View File

@@ -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;