НА ПОЧИНИСЬ БЛЯДОДОС

This commit is contained in:
Jganenokk
2026-07-06 13:52:51 +07:00
parent 4e35e3d176
commit 72f620a0f7
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -586,6 +586,7 @@ class Api {
void _startPinging() {
_pingTimer?.cancel();
sendPing(interactive: !KometSettings.ghostMode.value);
_pingTimer = Timer.periodic(ServerConfig.pingInterval, (_) {
sendPing(interactive: !KometSettings.ghostMode.value);
});
+3 -1
View File
@@ -7,7 +7,9 @@ import 'lz4_block.dart';
/// ver(1) + cmd(1) + seq(2) + opcode(2) + packedLen(4) = 10
const int headerSize = 10;
const int _maxDecompressedSize = 1048576; // 1 MB
/// Потолок распаковки payload (анти-бомба); буфер растёт динамически до него.
const int _maxDecompressedSize = 32 * 1024 * 1024; // 32 MB
/// Типы команд в протоколе
abstract class CmdType {
+1 -1
View File
@@ -14,7 +14,7 @@ class PacketReceiver {
int _start = 0;
int _end = 0;
static const int _maxBufferSize = 2 * 1024 * 1024;
static const int _maxBufferSize = 16 * 1024 * 1024;
List<Uint8List> feed(Uint8List data) {
_append(data);