From c46726b4b7098f125af532da3a8edb09a739f7b8 Mon Sep 17 00:00:00 2001 From: pooler Date: Tue, 15 Apr 2014 21:11:10 +0200 Subject: [PATCH] Disable long polling timeout by default --- cpu-miner.c | 4 ++-- minerd.1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu-miner.c b/cpu-miner.c index 0a8d610..780ba21 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -123,7 +123,7 @@ static bool opt_background = false; static bool opt_quiet = false; static int opt_retries = -1; static int opt_fail_pause = 30; -int opt_timeout = 270; +int opt_timeout = 0; static int opt_scantime = 5; static json_t *opt_config; static const bool opt_time = true; @@ -177,7 +177,7 @@ Options:\n\ -r, --retries=N number of times to retry if a network call fails\n\ (default: retry indefinitely)\n\ -R, --retry-pause=N time to pause between retries, in seconds (default: 30)\n\ - -T, --timeout=N network timeout, in seconds (default: 270)\n\ + -T, --timeout=N timeout for long polling, in seconds (default: none)\n\ -s, --scantime=N upper bound on time spent scanning current work when\n\ long polling is unavailable, in seconds (default: 5)\n\ --no-longpoll disable X-Long-Polling support\n\ diff --git a/minerd.1 b/minerd.1 index c62d26c..e184ef8 100644 --- a/minerd.1 +++ b/minerd.1 @@ -154,7 +154,7 @@ If not specified, the miner will try to detect the number of available processor and use that. .TP \fB\-T\fR, \fB\-\-timeout\fR=\fISECONDS\fR -Set the timeout for long polling. Default is 270 seconds. +Set a timeout for long polling. .TP \fB\-u\fR, \fB\-\-user\fR=\fIUSERNAME\fR Set the username to use for connecting to the mining server.