h2load: Fix doc and remove trailing spaces

This commit is contained in:
Tatsuhiro Tsujikawa 2014-10-22 21:37:44 +09:00
parent 9aed11e3dc
commit 4122920dc6
1 changed files with 11 additions and 11 deletions

View File

@ -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)
} }
} 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();
@ -964,7 +964,7 @@ int main(int argc, char **argv)
// 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;
} }
} }