From c5c3fed6475eefd026879acd1fc331a9d56298d7 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 15 Apr 2016 16:55:59 +0800 Subject: [PATCH] checking for conection does not work yet as intended. remming it out. --- src/page.h | 16 ++++++++-------- src/rpccalls.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/page.h b/src/page.h index 7a0b5af..205ad14 100644 --- a/src/page.h +++ b/src/page.h @@ -62,14 +62,14 @@ namespace xmreg { index(uint64_t page_no = 0, bool refresh_page = false) { - bool is_connected = rpc.check_connection(); - - cout << "check connection: " << is_connected << endl; - - if (!is_connected) - { - return "Connection to the Monero demon does not exist or was lost!"; - } +// bool is_connected = rpc.check_connection(); +// +// cout << "check connection: " << is_connected << endl; +// +// if (!is_connected) +// { +// return "Connection to the Monero demon does not exist or was lost!"; +// } //get current server timestamp server_timestamp = std::time(nullptr); diff --git a/src/rpccalls.h b/src/rpccalls.h index 708a71b..0f7e0be 100644 --- a/src/rpccalls.h +++ b/src/rpccalls.h @@ -23,7 +23,7 @@ namespace xmreg class rpccalls { string deamon_url {"http:://127.0.0.1:18081"}; - uint64_t timeout_time {20000}; + uint64_t timeout_time {200000}; epee::net_utils::http::url_content url;