Skip to content
Snippets Groups Projects
Commit 142a1919 authored by oljas.jarasbaev's avatar oljas.jarasbaev
Browse files

[*] fix long response

parent 6a4bd9f9
No related branches found
No related tags found
2 merge requests!436Hotfixes 15 11,!413Feature 9526
Pipeline #46339 passed with stage
in 12 minutes and 56 seconds
...@@ -73,7 +73,6 @@ void s_save_key_in_storge(dap_enc_ks_key_t *a_key) ...@@ -73,7 +73,6 @@ void s_save_key_in_storge(dap_enc_ks_key_t *a_key)
//dap_memcache_put(a_key->id, l_serialize_key, sizeof (dap_enc_key_serialize_t), s_memcache_expiration_key); //dap_memcache_put(a_key->id, l_serialize_key, sizeof (dap_enc_key_serialize_t), s_memcache_expiration_key);
free(l_serialize_key); free(l_serialize_key);
} }
log_it(L_MSG, "New ks key added %s", a_key->id);
} }
...@@ -161,7 +160,6 @@ dap_enc_ks_key_t * dap_enc_ks_add(struct dap_enc_key * key) ...@@ -161,7 +160,6 @@ dap_enc_ks_key_t * dap_enc_ks_add(struct dap_enc_key * key)
void dap_enc_ks_delete(const char *id) void dap_enc_ks_delete(const char *id)
{ {
log_it(L_MSG, "New ks key deleted %s", id);
dap_enc_ks_key_t *delItem = dap_enc_ks_find(id); dap_enc_ks_key_t *delItem = dap_enc_ks_find(id);
if (delItem) { if (delItem) {
HASH_DEL (_ks, delItem); HASH_DEL (_ks, delItem);
......
...@@ -150,6 +150,9 @@ static int s_exec_cmd_request_get_response(struct exec_cmd_request *a_exec_cmd_r ...@@ -150,6 +150,9 @@ static int s_exec_cmd_request_get_response(struct exec_cmd_request *a_exec_cmd_r
l_response_dec, l_response_dec_size_max, l_response_dec, l_response_dec_size_max,
DAP_ENC_DATA_TYPE_RAW); DAP_ENC_DATA_TYPE_RAW);
*a_response_out = json_tokener_parse(l_response_dec); *a_response_out = json_tokener_parse(l_response_dec);
if (!*a_response_out && l_response_dec) {
*a_response_out = json_object_new_string(l_response_dec);
}
*a_response_out_size = l_response_dec_size; *a_response_out_size = l_response_dec_size;
} else { } else {
log_it(L_ERROR, "Empty response in json-rpc"); log_it(L_ERROR, "Empty response in json-rpc");
...@@ -543,7 +546,7 @@ int dap_json_rpc_request_send(dap_client_pvt_t* a_client_internal, dap_json_rpc ...@@ -543,7 +546,7 @@ int dap_json_rpc_request_send(dap_client_pvt_t* a_client_internal, dap_json_rpc
s_exec_cmd_response_handler, s_exec_cmd_error_handler, s_exec_cmd_response_handler, s_exec_cmd_error_handler,
l_exec_cmd_request, l_custom_header); l_exec_cmd_request, l_custom_header);
int l_ret = dap_chain_exec_cmd_list_wait(l_exec_cmd_request, 10000); int l_ret = dap_chain_exec_cmd_list_wait(l_exec_cmd_request, 100000);
switch (l_ret) { switch (l_ret) {
case EXEC_CMD_OK :{ case EXEC_CMD_OK :{
if (s_exec_cmd_request_get_response(l_exec_cmd_request, a_response, &l_response_size)) { if (s_exec_cmd_request_get_response(l_exec_cmd_request, a_response, &l_response_size)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment