Servd: Adjust buffer sizes

This commit is contained in:
Kyle Schwarz
2026-03-18 18:21:55 -04:00
parent 5a4a1489a8
commit 22d2b7c984
2 changed files with 16 additions and 7 deletions
+8
View File
@@ -116,6 +116,14 @@ bool Servd::open() {
return false;
}
dataSocket = std::make_unique<Socket>(AF_INET, SOCK_STREAM, 0);
if(!dataSocket->set_rcvbuf(4 * 1024 * 1024)) {
EventManager::GetInstance().add(APIEvent::Type::SyscallError, APIEvent::Severity::Error);
return false;
}
if(!dataSocket->set_sndbuf(4 * 1024 * 1024)) {
EventManager::GetInstance().add(APIEvent::Type::SyscallError, APIEvent::Severity::Error);
return false;
}
const auto& ip = tokens[0];
uint16_t port = 0;
try {