Start of polling.
This commit is contained in:
@@ -196,7 +196,7 @@ static json_t *cosmo_command(const char *name, const json_t *arguments) {
|
|||||||
// Takes ownership of commands.
|
// Takes ownership of commands.
|
||||||
static json_t *cosmo_send_rpc(cosmo *instance, json_t *commands) {
|
static json_t *cosmo_send_rpc(cosmo *instance, json_t *commands) {
|
||||||
// Always poll.
|
// Always poll.
|
||||||
json_array_append(commands, cosmo_command("poll", json_array()));
|
json_array_append_new(commands, cosmo_command("poll", json_array()));
|
||||||
|
|
||||||
char *request = cosmo_build_rpc(instance, commands);
|
char *request = cosmo_build_rpc(instance, commands);
|
||||||
|
|
||||||
|
|||||||
@@ -9,41 +9,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
curl_easy_perform_1
|
curl_easy_perform
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
fun:malloc
|
fun:malloc
|
||||||
fun:CRYPTO_malloc
|
fun:CRYPTO_malloc
|
||||||
|
...
|
||||||
fun:ERR_get_state
|
fun:ERR_get_state
|
||||||
fun:ERR_clear_error
|
fun:ERR_clear_error
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
...
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
fun:cosmo_thread_main
|
|
||||||
fun:start_thread
|
|
||||||
fun:clone
|
|
||||||
}
|
|
||||||
{
|
|
||||||
curl_easy_perform_2
|
|
||||||
Memcheck:Leak
|
|
||||||
fun:malloc
|
|
||||||
fun:CRYPTO_malloc
|
|
||||||
fun:lh_insert
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
|
|
||||||
fun:ERR_get_state
|
|
||||||
fun:ERR_clear_error
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
|
|
||||||
fun:cosmo_thread_main
|
fun:cosmo_thread_main
|
||||||
fun:start_thread
|
fun:start_thread
|
||||||
fun:clone
|
fun:clone
|
||||||
|
|||||||
Reference in New Issue
Block a user