Skip to content

Commit 9be9a0c

Browse files
committed
Added maxSockets CLI option
1 parent df08381 commit 9be9a0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/cli.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function cli()
8686
"host-requests":
8787
{
8888
rename: "maxSocketsPerHost",
89-
info: "The maximum number of requests per host/port at any given time.",
89+
info: "Concurrent requests limit per host.",
9090
type: Number,
9191
default: defaultOptions.maxSocketsPerHost
9292
},
@@ -103,6 +103,13 @@ function cli()
103103
info: "Recursively scan (\"crawl\") the HTML document(s).",
104104
type: Boolean
105105
},
106+
"requests":
107+
{
108+
rename: "maxSockets",
109+
info: "Concurrent requests limit.",
110+
type: Number,
111+
default: defaultOptions.maxSockets
112+
},
106113
"user-agent":
107114
{
108115
info: "The user agent to use for link checks.",
@@ -159,6 +166,7 @@ cli.prototype.input = function(args, showArgs)
159166
excludeLinksToSamePage: args.verbose!==true,
160167
filterLevel: args.filterLevel,
161168
honorRobotExclusions: args.followRobotExclusions!==true,
169+
maxSockets: args.maxSockets,
162170
maxSocketsPerHost: args.maxSocketsPerHost,
163171
requestMethod: args.get!==true ? "head" : "get",
164172
userAgent: args.userAgent

0 commit comments

Comments
 (0)