From 8c5d629d35e32ee0de779f481c47befd16f5ed84 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 15 Feb 2019 14:36:23 +0100 Subject: [PATCH] /v1/events: don't truncate any events --- lib/remote/eventshandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/remote/eventshandler.cpp b/lib/remote/eventshandler.cpp index cf07d6305..e6f895cf3 100644 --- a/lib/remote/eventshandler.cpp +++ b/lib/remote/eventshandler.cpp @@ -10,6 +10,7 @@ #include "base/objectlock.hpp" #include "base/json.hpp" #include +#include #include 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); } }