From cfcc42e2904fbc55175a9075c543d43131dc9090 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 10 Feb 2022 20:58:21 -0800 Subject: 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 /test_file_10g curl /test_file_123m Similarly, for https: http tps uri tls:///443 curl -k /test_file_1g Type: feature Signed-off-by: Florin Coras Change-Id: I30ab7f0d94a7357b3f04546e4a3d3c410a733908 --- src/plugins/http_static/static_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/http_static') 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)); -- cgit 1.2.3-korg