chore: Change client parsing from error to log

main
Sean McBride 4 years ago
parent 10ad100847
commit ff8c04a6e9

@ -15,6 +15,9 @@
#define RUNTIME_READ_WRITE_VECTOR_LENGTH 16
#define RUNTIME_GRANULARITY 100000
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
/*
* Descriptor of the epoll instance used to monitor the socket descriptors of registered
* serverless modules. The listener cores listens for incoming client requests through this.

@ -62,7 +62,9 @@ sandbox_parse_http_request(struct sandbox *sandbox, size_t length)
if (length == 0) return 0;
/* Assumption: We shouldn't have anything left to parse if message was successfully parsed to completion */
assert(!sandbox->http_request.message_end);
if (unlikely(sandbox->http_request.message_end)) {
debuglog("Unexpectedly received client data after message was parsed to completion");
};
size_t length_parsed = http_parser_execute(&sandbox->http_parser, http_parser_settings_get(),
sandbox->request_response_data

Loading…
Cancel
Save