limit events on socket2 to 1024 chars

This commit is contained in:
vaxerski 2022-07-01 10:37:17 +02:00
parent 29ca7f9018
commit 6f2a36c123

View file

@ -89,7 +89,7 @@ void CEventManager::startThread() {
for (auto& ev : m_dQueuedEvents) {
std::string eventString = ev.event + ">>" + ev.data + "\n";
for (auto& fd : m_dAcceptedSocketFDs) {
write(fd, eventString.c_str(), eventString.length());
write(fd, eventString.substr(0, 1023).c_str(), eventString.length());
}
}