]> granicus.if.org Git - icinga2/commitdiff
/v1/events: don't truncate any events
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Fri, 15 Feb 2019 13:36:23 +0000 (14:36 +0100)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 1 Apr 2019 09:40:14 +0000 (11:40 +0200)
lib/remote/eventshandler.cpp

index cf07d63056ecbbf2d07dd48c86043ff518a2e653..e6f895cf3ea2005c78afc9b8b2bfc3b6b317734e 100644 (file)
@@ -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);
        }
 }