НА ПОЧИНИСЬ БЛЯДОДОС
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user