mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
/v1/events: don't truncate any events
This commit is contained in:
parent
ac72ca4ae6
commit
8c5d629d35
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "base/objectlock.hpp"
|
||||
#include "base/json.hpp"
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/asio/write.hpp>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
using namespace icinga;
|
||||
|
|
@ -110,8 +111,8 @@ bool EventsHandler::HandleRequest(
|
|||
|
||||
IoBoundWorkSlot dontLockTheIoThreadWhileWriting (yc);
|
||||
|
||||
stream.async_write_some(payload, yc);
|
||||
stream.async_write_some(newLine, yc);
|
||||
asio::async_write(stream, payload, yc);
|
||||
asio::async_write(stream, newLine, yc);
|
||||
stream.async_flush(yc);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue