Implement slowcgi_timeout() to actually kill the backend bgpctl process.
authorclaudio <claudio@openbsd.org>
Fri, 12 Aug 2022 13:24:30 +0000 (13:24 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 12 Aug 2022 13:24:30 +0000 (13:24 +0000)
commit13a46cee36ed4c78276262a60b0bdcc11f49507d
tree8da58f7f8d610a75ba7417dfb6447e07f8eec5f8
parent91b1552395a86d7dbd826af18966b803a1e665cf
Implement slowcgi_timeout() to actually kill the backend bgpctl process.
If that succeeds the fcgi session will be terminated the regular way.
If it fails close all fds and finish the request.
Sending a SIGTERM to a read only bgpctl process should be fine at any point.
Also reduce the timeout to 30sec. This is not long enough to dump a full
rib but nobody should do that.
OK tb@
usr.sbin/bgplgd/slowcgi.c