[+] Protocol stack: IOConfig::uProtocolStackDefaultBufferSize

This commit is contained in:
Reece Wilson 2023-10-24 12:02:05 +01:00
parent efd4da861a
commit cca3ff73cb
2 changed files with 8 additions and 2 deletions

View File

@ -422,6 +422,11 @@ namespace Aurora
bool bEnablePreload { true };
};
struct IOConfig
{
AuUInt32 uProtocolStackDefaultBufferSize { 64 * 1024 };
};
struct RuntimeStartInfo
{
ConsoleConfig console;
@ -433,6 +438,7 @@ namespace Aurora
AuAlignTo<32, ThreadingConfig> threadingConfig;
AuAlignTo<32, LinuxConfig> linuxConfig;
AuAlignTo<32, ProcessConfig> processConfig;
AuAlignTo<32, IOConfig> ioConfig;
AuAlignTo<32, DummyConfig> padding;
};

View File

@ -103,7 +103,7 @@ namespace Aurora::IO::Protocol
if (!uOutputBufferSize)
{
uOutputBufferSize = 64 * 1024;
uOutputBufferSize = gRuntimeConfig.ioConfig.uProtocolStackDefaultBufferSize;
}
auto pNew = AuMakeShared<ProtocolPiece>();
@ -242,7 +242,7 @@ namespace Aurora::IO::Protocol
if (!uOutputBufferSize)
{
uOutputBufferSize = 64 * 1024;
uOutputBufferSize = gRuntimeConfig.ioConfig.uProtocolStackDefaultBufferSize;
}
auto pNew = AuMakeShared<ProtocolPiece>();