mirror of https://github.com/omar-polo/gmid.git
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:
parent
e18b070da8
commit
89c88caa3c
1
server.c
1
server.c
|
@ -1220,6 +1220,7 @@ handle_imsg_fcgi_fd(struct imsgbuf *ibuf, struct imsg *imsg, size_t len)
|
||||||
f = &fcgi[id];
|
f = &fcgi[id];
|
||||||
|
|
||||||
if ((f->fd = imsg->fd) != -1) {
|
if ((f->fd = imsg->fd) != -1) {
|
||||||
|
f->s = FCGI_READY;
|
||||||
event_set(&f->e, imsg->fd, EV_READ | EV_PERSIST, &handle_fcgi,
|
event_set(&f->e, imsg->fd, EV_READ | EV_PERSIST, &handle_fcgi,
|
||||||
&fcgi[id]);
|
&fcgi[id]);
|
||||||
event_add(&f->e, NULL);
|
event_add(&f->e, NULL);
|
||||||
|
|
Loading…
Reference in New Issue