mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +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/objectlock.hpp"
|
||||||
#include "base/json.hpp"
|
#include "base/json.hpp"
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
|
#include <boost/asio/write.hpp>
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
@ -110,8 +111,8 @@ bool EventsHandler::HandleRequest(
|
|||||||
|
|
||||||
IoBoundWorkSlot dontLockTheIoThreadWhileWriting (yc);
|
IoBoundWorkSlot dontLockTheIoThreadWhileWriting (yc);
|
||||||
|
|
||||||
stream.async_write_some(payload, yc);
|
asio::async_write(stream, payload, yc);
|
||||||
stream.async_write_some(newLine, yc);
|
asio::async_write(stream, newLine, yc);
|
||||||
stream.async_flush(yc);
|
stream.async_flush(yc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user