KCP improve

This commit is contained in:
2026-05-30 17:50:45 +08:00
parent 661ed401da
commit 56c74337e4
12 changed files with 272 additions and 31 deletions
+2
View File
@@ -27,6 +27,8 @@ $server = new PopServer(
Env::int('LAYLINK_MAX_SEND_BUFFER_BYTES', 64 * 1024 * 1024, 1024 * 1024),
Env::int('LAYLINK_BACKPRESSURE_HIGH_WATERMARK_BYTES', 32 * 1024 * 1024, 512 * 1024),
Env::int('LAYLINK_DATA_CHUNK_BYTES', 1024 * 1024, 16 * 1024, 8 * 1024 * 1024),
Env::int('POP_AGENT_TCP_WORKERS', 1, 1, 64),
Env::int('POP_AGENT_KCP_WORKERS', 1, 1, 1),
);
$server->boot();