http_static: fix first and add segment size 88/41688/5
authorFlorin Coras <[email protected]>
Mon, 7 Oct 2024 19:32:22 +0000 (12:32 -0700)
committerDave Barach <[email protected]>
Mon, 7 Oct 2024 23:24:59 +0000 (23:24 +0000)
Allow segments bigger than 4GB

Type: fix

Signed-off-by: Florin Coras <[email protected]>
Change-Id: I510f7cff75883fdbd6c0c22efff9a14e26c755f4

src/plugins/http/http.c
src/plugins/http_static/static_server.c

index f1f59b4..bbc7aed 100644 (file)
@@ -232,6 +232,7 @@ http_ts_accept_callback (session_t *ts)
   if ((rv = app_worker_init_accepted (as)))
     {
       HTTP_DBG (1, "failed to allocate fifos");
+      hc->h_pa_session_handle = SESSION_INVALID_HANDLE;
       session_free (as);
       return rv;
     }
index 48e71f5..49d1630 100644 (file)
@@ -747,7 +747,7 @@ hss_attach ()
   hss_main_t *hsm = &hss_main;
   u64 options[APP_OPTIONS_N_OPTIONS];
   vnet_app_attach_args_t _a, *a = &_a;
-  u32 segment_size = 128 << 20;
+  u64 segment_size = 128 << 20;
 
   clib_memset (a, 0, sizeof (*a));
   clib_memset (options, 0, sizeof (options));