mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fixes to elasticsearch plugin to make libcurl handle http responses correctly.
This commit is contained in:
parent
a33e9a6941
commit
f2a0afad3c
2 changed files with 3 additions and 3 deletions
|
@ -359,10 +359,10 @@ CURL* ElasticSearch::HTTPSetup()
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ElasticSearch::HTTPReceive(void* ptr, int size, int nmemb, void* userdata)
|
size_t ElasticSearch::HTTPReceive(void* ptr, int size, int nmemb, void* userdata)
|
||||||
{
|
{
|
||||||
//TODO: Do some verification on the result?
|
//TODO: Do some verification on the result?
|
||||||
return true;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ElasticSearch::HTTPSend(CURL *handle)
|
bool ElasticSearch::HTTPSend(CURL *handle)
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
bool UpdateIndex(double now, double rinterval, double rbase);
|
bool UpdateIndex(double now, double rinterval, double rbase);
|
||||||
|
|
||||||
CURL* HTTPSetup();
|
CURL* HTTPSetup();
|
||||||
bool HTTPReceive(void* ptr, int size, int nmemb, void* userdata);
|
size_t HTTPReceive(void* ptr, int size, int nmemb, void* userdata);
|
||||||
bool HTTPSend(CURL *handle);
|
bool HTTPSend(CURL *handle);
|
||||||
|
|
||||||
// Buffers, etc.
|
// Buffers, etc.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue