feat(lnm): switch to epoll
This commit is contained in:
parent
89cc41f28a
commit
d53a949946
8 changed files with 117 additions and 95 deletions
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include "lnm/http/consts.h"
|
||||
#include "lnm/http/loop.h"
|
||||
#include "lnm/loop.h"
|
||||
#include "lnm/log.h"
|
||||
#include "lnm/loop.h"
|
||||
#include "lsm/store.h"
|
||||
|
||||
#include "lander.h"
|
||||
|
|
@ -40,7 +40,8 @@ lnm_http_step_err lander_get_redirect(lnm_http_conn *conn) {
|
|||
// This shouldn't be able to happen
|
||||
if (lsm_entry_attr_get(&url_attr_val, c_ctx->entry, lander_attr_type_url) !=
|
||||
lsm_error_ok) {
|
||||
lnm_lerror("lander", "%s", "Entry of type redirect detected without URL attribute");
|
||||
lnm_lerror("lander", "%s",
|
||||
"Entry of type redirect detected without URL attribute");
|
||||
|
||||
ctx->res.status = lnm_http_status_internal_server_error;
|
||||
lsm_entry_close(c_ctx->entry);
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ int main() {
|
|||
lnm_linfo("main", "Store loaded containing %lu entries",
|
||||
lsm_store_size(c_gctx->store));
|
||||
lnm_http_loop *hl = loop_init(c_gctx, api_key);
|
||||
lnm_http_loop_run(hl, port);
|
||||
lnm_http_loop_run(hl, port, 1);
|
||||
|
||||
/* http_loop *hl = http_loop_init( */
|
||||
/* lander_routes, sizeof(lander_routes) / sizeof(lander_routes[0]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue