|
|
|
@ -145,6 +145,7 @@ sandbox_open_http(struct sandbox *sandbox)
|
|
|
|
|
/* Set the sandbox as the data the http-parser has access to */
|
|
|
|
|
sandbox->http_parser.data = sandbox; //assign data to sandbox in case to operator it when a callback happended
|
|
|
|
|
|
|
|
|
|
if (sandbox->module->next_module == NULL) {
|
|
|
|
|
/* Freshly allocated sandbox going runnable for first time, so register client socket with epoll */
|
|
|
|
|
struct epoll_event accept_evt;
|
|
|
|
|
accept_evt.data.ptr = (void *)sandbox;
|
|
|
|
@ -153,6 +154,7 @@ sandbox_open_http(struct sandbox *sandbox)
|
|
|
|
|
&accept_evt);
|
|
|
|
|
if (unlikely(rc < 0)) panic_err();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Prints key performance metrics for a sandbox to runtime_sandbox_perf_log
|
|
|
|
|