feat(lnm): switch to epoll
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Jef Roosens 2023-12-12 22:22:55 +01:00
parent 89cc41f28a
commit d53a949946
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 117 additions and 95 deletions

View file

@ -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);

View file

@ -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]),