[+] Protocol stack: IOConfig::uProtocolStackDefaultBufferSize
This commit is contained in:
parent
efd4da861a
commit
cca3ff73cb
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user