mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
add max-sockets CLI argument
This commit is contained in:
@@ -14,6 +14,10 @@ var argv = optimist
|
|||||||
default: '80',
|
default: '80',
|
||||||
describe: 'listen on this port for outside requests'
|
describe: 'listen on this port for outside requests'
|
||||||
})
|
})
|
||||||
|
.options('max-sockets', {
|
||||||
|
default: 10,
|
||||||
|
describe: 'maximum number of tcp sockets each client is allowed to establish at one time (the tunnels)'
|
||||||
|
})
|
||||||
.argv;
|
.argv;
|
||||||
|
|
||||||
if (argv.help) {
|
if (argv.help) {
|
||||||
@@ -22,7 +26,7 @@ if (argv.help) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var server = require('../server')({
|
var server = require('../server')({
|
||||||
max_tcp_sockets: 10,
|
max_tcp_sockets: argv['max-sockets'],
|
||||||
secure: argv.secure
|
secure: argv.secure
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user