From ebc733b9cee9ffb6d7623f63704311058b058009 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 25 Jun 2018 21:59:39 -1100 Subject: [PATCH] Curlt timeout -> 10 sec --- crypto777/bitcoind_RPC.c | 2 +- iguana/exchanges/LP_include.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index 36ab1ce82..78c874cbe 100755 --- a/crypto777/bitcoind_RPC.c +++ b/crypto777/bitcoind_RPC.c @@ -289,7 +289,7 @@ try_again: count++; elapsedsum += (OS_milliseconds() - starttime); if ( (count % 100000) == 0) - printf("%d: ave %9.6f | elapsed %.3f millis | bitcoind_RPC.(%s) url.(%s)\n",count,elapsedsum/count,(OS_milliseconds() - starttime),command,url); + printf("%d: %s ave %9.6f | elapsed %.3f millis | bitcoind_RPC.(%s) url.(%s)\n",count,debugstr,elapsedsum/count,(OS_milliseconds() - starttime),command,url); if ( retstrp != 0 ) { *retstrp = retstr; diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index 11ef6e96a..f95b98c61 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -59,7 +59,7 @@ void emscripten_usleep(int32_t x); // returns immediate, no sense for sleeping //#define LP_DISABLE_DISTCOMBINE #define LP_MAXVINS 64 -#define LP_HTTP_TIMEOUT 3 // 1 is too small due to edge cases of time(NULL) +#define LP_HTTP_TIMEOUT 10 // 1 is too small due to edge cases of time(NULL) #define LP_AUTOTRADE_TIMEOUT 30 #define LP_RESERVETIME (LP_AUTOTRADE_TIMEOUT * 3) #define ELECTRUM_TIMEOUT 13