aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-09 19:13:13 +0000
committerOmar Polo <op@omarpolo.com>2023-08-09 19:13:13 +0000
commit390d312b22670d92dc6ee5afd7a116b7a2330881 (patch)
tree6d81987c1c4b52d7a31a934bcd157b48c0794d8f /gmid.h
parent01481c255ae837d80f00ffcf8493e5b13b329323 (diff)
don't call client_close() from fcgi/proxy bev handlers
We might end up calling client_close() from start_reply(), but that will free the fcgi/proxy bufferevent while they're still used on the stack. Instead, start_reply() only sets REQUEST_DONE and exits, returning the error eventually, so callers know when to stop.
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.h b/gmid.h
index bdf3883..7651f9b 100644
--- a/gmid.h
+++ b/gmid.h
@@ -409,7 +409,7 @@ int vhost_disable_log(struct vhost*, const char*);
void mark_nonblock(int);
void client_write(struct bufferevent *, void *);
-void start_reply(struct client*, int, const char*);
+int start_reply(struct client*, int, const char*);
void client_close(struct client *);
struct client *client_by_id(int);
void server_accept(int, short, void *);