aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/http_static/static_server.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-02-10 20:58:21 -0800
committerDave Barach <openvpp@barachs.net>2022-02-13 23:34:51 +0000
commitcfcc42e2904fbc55175a9075c543d43131dc9090 (patch)
treeafa56b18d2777e125f5a73958b143e5e019afe62 /src/plugins/http_static/static_server.c
parent1b969c2f6a181d4f7cca542dad00e4feb1e45650 (diff)
hsa: add http throughput test server app
Can be used for throughput testing over http. For instance, start server: http tps #implicitly listens on port 80 Then, to test throughput with curl: curl <server_ip>/test_file_10g curl <server_ip>/test_file_123m Similarly, for https: http tps uri tls://<server_ip>/443 curl -k <server_ip>/test_file_1g Type: feature Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I30ab7f0d94a7357b3f04546e4a3d3c410a733908
Diffstat (limited to 'src/plugins/http_static/static_server.c')
-rw-r--r--src/plugins/http_static/static_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c
index a71136db7d9..cd54670884a 100644
--- a/src/plugins/http_static/static_server.c
+++ b/src/plugins/http_static/static_server.c
@@ -605,7 +605,7 @@ hss_listen (void)
if (parse_uri (uri, &sep))
return -1;
- need_crypto = hss_transport_needs_crypto (a->sep_ext.transport_proto);
+ need_crypto = hss_transport_needs_crypto (sep.transport_proto);
sep.transport_proto = TRANSPORT_PROTO_HTTP;
clib_memcpy (&a->sep_ext, &sep, sizeof (sep));