From 89c88caa3c023d5194e0d572ae99ab006557cbf3 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 12 Jun 2021 13:41:33 +0000 Subject: [PATCH] mark backend as FCGI_READY when getting a fd otherwise clients will remain stuck waiting for a pending request that doesn't exist (see apply_fastcgi switch.) --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index 514782b..7172f30 100644 --- a/server.c +++ b/server.c @@ -1220,6 +1220,7 @@ handle_imsg_fcgi_fd(struct imsgbuf *ibuf, struct imsg *imsg, size_t len) f = &fcgi[id]; if ((f->fd = imsg->fd) != -1) { + f->s = FCGI_READY; event_set(&f->e, imsg->fd, EV_READ | EV_PERSIST, &handle_fcgi, &fcgi[id]); event_add(&f->e, NULL);