From: Alexander A. Klimov Date: Fri, 15 Feb 2019 13:36:23 +0000 (+0100) Subject: /v1/events: don't truncate any events X-Git-Tag: v2.11.0-rc1~174^2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c5d629d35e32ee0de779f481c47befd16f5ed84;p=icinga2 /v1/events: don't truncate any events --- 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); } }