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.)
This commit is contained in:
Omar Polo 2021-06-12 13:41:33 +00:00
parent e18b070da8
commit 89c88caa3c
1 changed files with 1 additions and 0 deletions

View File

@ -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);