diff --git a/runtime/include/http_session.h b/runtime/include/http_session.h index b137a57..fbc1cd0 100644 --- a/runtime/include/http_session.h +++ b/runtime/include/http_session.h @@ -345,7 +345,7 @@ http_session_log_malformed_request(struct http_session *session) /** * Receive and Parse the Request for the current sandbox - * @return 0 if message parsing complete, -1 on error, -ENOMEM if buffers run out of space, -3 EAGAIN if would block + * @return 0 if message parsing complete, -1 on error, -EAGAIN if would block */ static inline int http_session_receive_request(struct http_session *session, void_star_cb on_eagain) @@ -401,10 +401,6 @@ done: err_eagain: rc = -EAGAIN; goto done; -err_nobufs: - http_session_log_malformed_request(session); - rc = -ENOMEM; - goto done; err: http_session_log_malformed_request(session); rc = -1; diff --git a/runtime/src/listener_thread.c b/runtime/src/listener_thread.c index dc328b4..7856016 100644 --- a/runtime/src/listener_thread.c +++ b/runtime/src/listener_thread.c @@ -199,13 +199,6 @@ on_client_request_receiving(struct http_session *session) } else if (unlikely(rc == -EAGAIN)) { /* session blocked and registered to epoll so continue to next handle */ return; - } else if (unlikely(rc == -ENOMEM)) { - /* Failed to grow request buffer */ - debuglog("Failed to grow http request buffer\n"); - session->state = HTTP_SESSION_EXECUTION_COMPLETE; - http_session_set_response_header(session, 500); - on_client_response_header_sending(session); - return; } else if (rc < 0) { debuglog("Failed to receive or parse request\n"); session->state = HTTP_SESSION_EXECUTION_COMPLETE; diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index 65afecc..48b74fc 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -21,7 +21,7 @@ static inline void sandbox_log_allocation(struct sandbox *sandbox) { #ifdef LOG_SANDBOX_ALLOCATION - debuglog("Sandbox %lu: of %s:%d\n", sandbox->id, sandbox->module->name, sandbox->module->port); + debuglog("Sandbox %lu: of %s %s\n", sandbox->id, sandbox->tenant->name, sandbox->route->route); #endif }