mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
parent
2de8bac588
commit
b2e2b587da
@ -8,6 +8,7 @@
|
|||||||
#include "icinga/compatutility.hpp"
|
#include "icinga/compatutility.hpp"
|
||||||
#include "icinga/service.hpp"
|
#include "icinga/service.hpp"
|
||||||
#include "icinga/checkcommand.hpp"
|
#include "icinga/checkcommand.hpp"
|
||||||
|
#include "base/defer.hpp"
|
||||||
#include "base/tcpsocket.hpp"
|
#include "base/tcpsocket.hpp"
|
||||||
#include "base/stream.hpp"
|
#include "base/stream.hpp"
|
||||||
#include "base/base64.hpp"
|
#include "base/base64.hpp"
|
||||||
@ -445,6 +446,8 @@ void ElasticsearchWriter::SendRequest(const String& body)
|
|||||||
if (!stream)
|
if (!stream)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Defer close ([&stream]() { stream->Close(); });
|
||||||
|
|
||||||
HttpRequest req(stream);
|
HttpRequest req(stream);
|
||||||
|
|
||||||
/* Specify required headers by Elasticsearch. */
|
/* Specify required headers by Elasticsearch. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user