|
@@ -136,7 +136,7 @@ static struct option longopts[] = { |
|
|
{"retry-on-failure", no_argument, ¶m.retry_on_failure, 1}, |
|
|
{"retry-on-failure", no_argument, ¶m.retry_on_failure, 1}, |
|
|
{"runtime", required_argument, (int *) ¶m.runtime, 0}, |
|
|
{"runtime", required_argument, (int *) ¶m.runtime, 0}, |
|
|
{"send-buffer", required_argument, (int *) ¶m.send_buffer_size, 0}, |
|
|
{"send-buffer", required_argument, (int *) ¶m.send_buffer_size, 0}, |
|
|
{"server", required_argument, (int *) ¶m.server, 0}, |
|
|
|
|
|
|
|
|
{"servers", required_argument, (int *) ¶m.servers, 0}, |
|
|
{"uri", required_argument, (int *) ¶m.uri, 0}, |
|
|
{"uri", required_argument, (int *) ¶m.uri, 0}, |
|
|
{"session-cookies", no_argument, (int *) ¶m.session_cookies, 1}, |
|
|
{"session-cookies", no_argument, (int *) ¶m.session_cookies, 1}, |
|
|
#ifdef HAVE_SSL |
|
|
#ifdef HAVE_SSL |
|
@@ -177,7 +177,7 @@ usage(void) |
|
|
"\t[--print-reply [header|body]] [--print-request [header|body]]\n" |
|
|
"\t[--print-reply [header|body]] [--print-request [header|body]]\n" |
|
|
"\t[--rate X] [--recv-buffer N] [--retry-on-failure] " |
|
|
"\t[--rate X] [--recv-buffer N] [--retry-on-failure] " |
|
|
"[--send-buffer N]\n" |
|
|
"[--send-buffer N]\n" |
|
|
"\t<--server file> [--port N] [--uri S] [--myaddr S]\n" |
|
|
|
|
|
|
|
|
"\t<--servers file> [--port N] [--uri S] [--myaddr S]\n" |
|
|
#ifdef HAVE_SSL |
|
|
#ifdef HAVE_SSL |
|
|
"\t[--ssl] [--ssl-ciphers L] [--ssl-no-reuse]\n" |
|
|
"\t[--ssl] [--ssl-ciphers L] [--ssl-no-reuse]\n" |
|
|
"\t[--ssl-certificate file] [--ssl-key file]\n" |
|
|
"\t[--ssl-certificate file] [--ssl-key file]\n" |
|
@@ -635,8 +635,8 @@ main(int argc, char **argv) |
|
|
prog_name, optarg); |
|
|
prog_name, optarg); |
|
|
exit(1); |
|
|
exit(1); |
|
|
} |
|
|
} |
|
|
} else if (flag == ¶m.server) |
|
|
|
|
|
param.server = optarg; |
|
|
|
|
|
|
|
|
} else if (flag == ¶m.servers) |
|
|
|
|
|
param.servers = optarg; |
|
|
#ifdef HAVE_SSL |
|
|
#ifdef HAVE_SSL |
|
|
else if (flag == ¶m.ssl_cipher_list) |
|
|
else if (flag == ¶m.ssl_cipher_list) |
|
|
param.ssl_cipher_list = optarg; |
|
|
param.ssl_cipher_list = optarg; |
|
@@ -974,9 +974,9 @@ main(int argc, char **argv) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (param.server == NULL) { |
|
|
|
|
|
|
|
|
if (param.servers == NULL) { |
|
|
fprintf(stderr, |
|
|
fprintf(stderr, |
|
|
"%s: must specify --server\n", |
|
|
|
|
|
|
|
|
"%s: must specify --servers\n", |
|
|
prog_name); |
|
|
prog_name); |
|
|
exit(-1); |
|
|
exit(-1); |
|
|
} |
|
|
} |
|
@@ -1131,8 +1131,8 @@ main(int argc, char **argv) |
|
|
if (param.runtime > 0) |
|
|
if (param.runtime > 0) |
|
|
printf(" --runtime=%g", param.runtime); |
|
|
printf(" --runtime=%g", param.runtime); |
|
|
printf(" --client=%u/%u", param.client.id, param.client.num_clients); |
|
|
printf(" --client=%u/%u", param.client.id, param.client.num_clients); |
|
|
if (param.server) |
|
|
|
|
|
printf(" --server=%s", param.server); |
|
|
|
|
|
|
|
|
if (param.servers) |
|
|
|
|
|
printf(" --servers=%s", param.servers); |
|
|
if (param.port) |
|
|
if (param.port) |
|
|
printf(" --port=%d", param.port); |
|
|
printf(" --port=%d", param.port); |
|
|
if (param.uri) |
|
|
if (param.uri) |
|
|