mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
/v1/events: don't truncate any events
This commit is contained in:
parent
ac72ca4ae6
commit
8c5d629d35
@ -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…
x
Reference in New Issue
Block a user