Commit 4122920d authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Fix doc and remove trailing spaces

parent 9aed11e3
...@@ -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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment