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:
parent
19fafc6a8c
commit
19cb63b614
12 changed files with 1180 additions and 605 deletions
18
muninn.h
Normal file
18
muninn.h
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue