WIP: request and connection machine

Just need a simple request logging phase to wrap this up

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2026-05-04 20:29:35 +00:00
parent 19fafc6a8c
commit 1c3736e6d2
12 changed files with 545 additions and 4253 deletions

18
muninn.h Normal file
View file

@ -0,0 +1,18 @@
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#define NGX_MUNINN_MODULE 0x42000000
#define NGX_MUNINN_CONF 0x00000086
#define MUN_DNS_LEGACY_UDP_SZ 512
#define MUN_DEFAULT_CONN_POOL_SZ 1024
typedef struct {
ngx_uint_t read_state, finalized;
ngx_chain_t *in, *out, *read_cur;
//ngx_pool_t *pool; use conn->pool;
//ngx_log_t *log; use conn->log;
ngx_connection_t *conn;
} mun_dns_request;