From 8d6a2fb1fae7ee98f40a8b89969ad9ed687b9b93 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 2 Jun 2022 12:24:12 -0400 Subject: [PATCH 1/4] docs: Remove zombie param tags --- runtime/include/module.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/include/module.h b/runtime/include/module.h index ade54f3..b2ab6ad 100644 --- a/runtime/include/module.h +++ b/runtime/include/module.h @@ -143,8 +143,6 @@ module_initialize_memory(struct module *module) /** * Invoke a module's entry function, forwarding on argc and argv * @param module - * @param argc standard UNIX count of arguments - * @param argv standard UNIX vector of arguments * @return return code of module's main function */ static inline int32_t From 76bc1b34f9767dcff656e81030966d57c252b38b Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 2 Jun 2022 12:24:29 -0400 Subject: [PATCH 2/4] fix: Add missing header guard --- runtime/include/worker_thread_epoll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/include/worker_thread_epoll.h b/runtime/include/worker_thread_epoll.h index f33a6b6..2fc4e73 100644 --- a/runtime/include/worker_thread_epoll.h +++ b/runtime/include/worker_thread_epoll.h @@ -1,3 +1,5 @@ +#pragma once + #include "worker_thread.h" static inline void From 13ea7f1307cb8fccf26b37714e4c48fb0761030b Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 2 Jun 2022 12:25:21 -0400 Subject: [PATCH 3/4] refactor: remove unused header include --- runtime/include/scheduler_execute_epoll_loop.h | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/include/scheduler_execute_epoll_loop.h b/runtime/include/scheduler_execute_epoll_loop.h index 683b18c..5695afc 100644 --- a/runtime/include/scheduler_execute_epoll_loop.h +++ b/runtime/include/scheduler_execute_epoll_loop.h @@ -8,7 +8,6 @@ #include "runtime.h" #include "sandbox_functions.h" #include "sandbox_set_as_error.h" -#include "sandbox_set_as_runnable.h" #include "sandbox_state.h" #include "sandbox_types.h" #include "worker_thread.h" From 244f9ecad6bd78e48a74e2c994e7018a23e67137 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 2 Jun 2022 12:25:51 -0400 Subject: [PATCH 4/4] fix: correct http_parser error handling --- runtime/include/http_session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/include/http_session.h b/runtime/include/http_session.h index 41becb5..37266a7 100644 --- a/runtime/include/http_session.h +++ b/runtime/include/http_session.h @@ -305,7 +305,7 @@ http_session_parse(struct http_session *session, ssize_t bytes_received) (const char *)&session->request_buffer.buffer[session->http_request.length_parsed], (size_t)session->request_buffer.length - session->http_request.length_parsed); - if (bytes_parsed < (size_t)bytes_received) { + if (session->http_parser.http_errno != HPE_OK) { debuglog("Error: %s, Description: %s\n", http_errno_name((enum http_errno)session->http_parser.http_errno), http_errno_description((enum http_errno)session->http_parser.http_errno));