Disable long polling timeout by default
This commit is contained in:
parent
94fd77f3f5
commit
c46726b4b7
2 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ static bool opt_background = false;
|
||||||
static bool opt_quiet = false;
|
static bool opt_quiet = false;
|
||||||
static int opt_retries = -1;
|
static int opt_retries = -1;
|
||||||
static int opt_fail_pause = 30;
|
static int opt_fail_pause = 30;
|
||||||
int opt_timeout = 270;
|
int opt_timeout = 0;
|
||||||
static int opt_scantime = 5;
|
static int opt_scantime = 5;
|
||||||
static json_t *opt_config;
|
static json_t *opt_config;
|
||||||
static const bool opt_time = true;
|
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\
|
-r, --retries=N number of times to retry if a network call fails\n\
|
||||||
(default: retry indefinitely)\n\
|
(default: retry indefinitely)\n\
|
||||||
-R, --retry-pause=N time to pause between retries, in seconds (default: 30)\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\
|
-s, --scantime=N upper bound on time spent scanning current work when\n\
|
||||||
long polling is unavailable, in seconds (default: 5)\n\
|
long polling is unavailable, in seconds (default: 5)\n\
|
||||||
--no-longpoll disable X-Long-Polling support\n\
|
--no-longpoll disable X-Long-Polling support\n\
|
||||||
|
|
2
minerd.1
2
minerd.1
|
@ -154,7 +154,7 @@ If not specified, the miner will try to detect the number of available processor
|
||||||
and use that.
|
and use that.
|
||||||
.TP
|
.TP
|
||||||
\fB\-T\fR, \fB\-\-timeout\fR=\fISECONDS\fR
|
\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
|
.TP
|
||||||
\fB\-u\fR, \fB\-\-user\fR=\fIUSERNAME\fR
|
\fB\-u\fR, \fB\-\-user\fR=\fIUSERNAME\fR
|
||||||
Set the username to use for connecting to the mining server.
|
Set the username to use for connecting to the mining server.
|
||||||
|
|
Loading…
Reference in a new issue