Use semaphores to keep track of proxy connections

This commit is contained in:
2023-01-05 22:51:30 +01:00
parent 993cb65724
commit 950bf19331
3 changed files with 50 additions and 17 deletions

View File

@ -34,6 +34,10 @@ void proxy_unload(void);
void proxy_close_all(void);
proxy_ctx_t *proxy_get_by_conf(host_config_t *conf);
void proxy_unlock_ctx(proxy_ctx_t *ctx);
int proxy_request_header(http_req *req, sock *sock);
int proxy_response_header(http_req *req, http_res *res, host_config_t *conf);