Clean up fastcgi_handler a bit

This commit is contained in:
2026-06-09 16:14:50 +02:00
parent 75716075ba
commit 629c66d62b
3 changed files with 40 additions and 36 deletions
+7 -7
View File
@@ -17,6 +17,12 @@
#include "../lib/proxy.h"
#include "../lib/fastcgi.h"
typedef struct {
unsigned char closed:4;
char log_prefix[128];
fastcgi_cnx_t cnx;
} fastcgi_ctx_t;
typedef struct {
sock socket;
int req_num;
@@ -36,7 +42,7 @@ typedef struct {
long content_length, transferred_length;
char *msg_buf, *msg_buf_ptr, msg_content[1024];
proxy_ctx_t *proxy;
void *fcgi_ctx;
fastcgi_ctx_t *fcgi_ctx;
} client_ctx_t;
typedef struct {
@@ -45,12 +51,6 @@ typedef struct {
void *other;
} ws_ctx_t;
typedef struct {
unsigned char closed:4;
char log_prefix[128];
fastcgi_cnx_t cnx;
} fastcgi_ctx_t;
typedef struct {
client_ctx_t *client;
sock *socket;