Rename listener-threads to reflect the option

This commit is contained in:
Ondřej Kuzník 2017-06-13 19:27:50 +01:00 committed by Ondřej Kuzník
parent 0a075905a1
commit 3fa8a0cdf2
2 changed files with 5 additions and 5 deletions

View File

@ -125,7 +125,7 @@ the proxy authorization control (RFC 4370).
Read additional configuration information from the given file before
continuing with the next line of the current file.
.TP
.B listener-threads <integer>
.B io-threads <integer>
Specify the number of threads to use for the connection manager.
The default is 1 and this is typically adequate for up to 16 CPU cores.
The value should be set to a power of 2.

View File

@ -135,7 +135,7 @@ enum {
CFG_THREADS,
CFG_LOGFILE,
CFG_MIRRORMODE,
CFG_LTHREADS,
CFG_IOTHREADS,
CFG_THREADQS,
CFG_TLS_ECNAME,
CFG_TLS_CACERT,
@ -183,8 +183,8 @@ static ConfigTable config_back_cf_table[] = {
ARG_MAGIC,
&config_include,
},
{ "listener-threads", "count", 2, 0, 0,
ARG_UINT|ARG_MAGIC|CFG_LTHREADS,
{ "io-threads", "count", 2, 0, 0,
ARG_UINT|ARG_MAGIC|CFG_IOTHREADS,
&config_generic,
},
{ "logfile", "file", 2, 2, 0,
@ -418,7 +418,7 @@ config_generic( ConfigArgs *c )
connection_pool_queues = c->value_int; /* save for reference */
break;
case CFG_LTHREADS: {
case CFG_IOTHREADS: {
int mask = 0;
/* use a power of two */
while ( c->value_uint > 1 ) {