Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
4122920d
Commit
4122920d
authored
Oct 22, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h2load: Fix doc and remove trailing spaces
parent
9aed11e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/h2load.cc
src/h2load.cc
+11
-11
No files found.
src/h2load.cc
View file @
4122920d
...
@@ -633,14 +633,14 @@ Options:
...
@@ -633,14 +633,14 @@ Options:
-t, --threads=<N> Number of native threads. Default: )"
-t, --threads=<N> Number of native threads. Default: )"
<<
config
.
nthreads
<<
R"(
<<
config
.
nthreads
<<
R"(
-i, --input-file=<FILE>
-i, --input-file=<FILE>
Path of
a file with multiple URIs are
seperated
Path of
a file with multiple URIs are
seperated
by EOLs.
This option will disable URIs getting
by EOLs.
This option will disable URIs getting
from
stdin. URIs are used in this order for each
from
command-line. URIs are used in this order
client. All URIs are used, then first URI is
for each client. All URIs are used, then first
used and then 2nd URI, and so on. The scheme,
URI is used and then 2nd URI, and so on. The
host and port in the subsequent URIs, if present,
scheme, host and port in the subsequent URIs, if
are ignored. Those in the first URI are used
present, are ignored. Those in the first URI are
solely.
used
solely.
-m, --max-concurrent-streams=(auto|<N>)
-m, --max-concurrent-streams=(auto|<N>)
Max concurrent streams to issue per session. If
Max concurrent streams to issue per session. If
"auto" is given, the number of given URIs is
"auto" is given, the number of given URIs is
...
@@ -927,7 +927,7 @@ int main(int argc, char **argv)
...
@@ -927,7 +927,7 @@ int main(int argc, char **argv)
}
}
}
else
{
}
else
{
if
(
uri_file
.
is_open
())
{
if
(
uri_file
.
is_open
())
{
//
load rest uris from file
//
load rest uris from file
while
(
std
::
getline
(
uri_file
,
line_uri
))
{
while
(
std
::
getline
(
uri_file
,
line_uri
))
{
auto
uri
=
(
char
*
)
line_uri
.
c_str
();
auto
uri
=
(
char
*
)
line_uri
.
c_str
();
...
@@ -963,8 +963,8 @@ int main(int argc, char **argv)
...
@@ -963,8 +963,8 @@ int main(int argc, char **argv)
if
(
std
::
find
(
override_hdrs
.
begin
(),
override_hdrs
.
end
(),
kv
.
first
)
!=
override_hdrs
.
end
())
{
if
(
std
::
find
(
override_hdrs
.
begin
(),
override_hdrs
.
end
(),
kv
.
first
)
!=
override_hdrs
.
end
())
{
// override header
// override header
for
(
auto
&
nv
:
shared_nva
)
{
for
(
auto
&
nv
:
shared_nva
)
{
if
(
(
nv
.
name
==
":authority"
&&
kv
.
first
==
":host"
)
if
(
(
nv
.
name
==
":authority"
&&
kv
.
first
==
":host"
)
||
(
nv
.
name
==
kv
.
first
)
)
{
||
(
nv
.
name
==
kv
.
first
)
)
{
nv
.
value
=
kv
.
second
;
nv
.
value
=
kv
.
second
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment