limit events on socket2 to 1024 chars
This commit is contained in:
parent
29ca7f9018
commit
6f2a36c123
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ void CEventManager::startThread() {
|
||||||
for (auto& ev : m_dQueuedEvents) {
|
for (auto& ev : m_dQueuedEvents) {
|
||||||
std::string eventString = ev.event + ">>" + ev.data + "\n";
|
std::string eventString = ev.event + ">>" + ev.data + "\n";
|
||||||
for (auto& fd : m_dAcceptedSocketFDs) {
|
for (auto& fd : m_dAcceptedSocketFDs) {
|
||||||
write(fd, eventString.c_str(), eventString.length());
|
write(fd, eventString.substr(0, 1023).c_str(), eventString.length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue