is there a good fastcgi implementation somewhere,the "official" one was not maintained since years ago. https://fastcgi-archives.github.io/
http://python.ca/scgi/protocol.txt
I started implementing a FastCGI client library for Racket, and (though I have experience getting into the bytes and bits of protocol implementation) it seemed harder than it needed to be. So I decided to try SCGI first, and SCGI ended up working great in production:
https://www.mit.edu/~yandros/doc/specs/fcgi-spec.html
Easier than integrating a 3rd party tool.