summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proxy.h b/proxy.h
index 0ab3b91..24a5ea0 100644
--- a/proxy.h
+++ b/proxy.h
@@ -195,6 +195,8 @@ typedef struct {
lua_State *proxy_state;
void *proxy_code;
proxy_event_thread_t *proxy_io_thread;
+ uint64_t active_req_limit; // max total in-flight requests
+ uint64_t buffer_memory_limit; // max bytes for send/receive buffers.
pthread_mutex_t config_lock;
pthread_cond_t config_cond;
pthread_t config_tid;
@@ -497,6 +499,9 @@ typedef struct {
mcp_pool_be_t *pool; // ptr to main->pool starting offset for owner thread.
} mcp_pool_proxy_t;
+// utils
+bool proxy_bufmem_checkadd(LIBEVENT_THREAD *t, int len);
+
// networking interface
void proxy_init_event_thread(proxy_event_thread_t *t, proxy_ctx_t *ctx, struct event_base *base);
void *proxy_event_thread(void *arg);