4 ms·
This brings me back... I was doing this exact sort of stuff at the turn of the century, although admittedly in C - not C++ - and using/linking to the Delphi CGI
by mfontani 9y ago
This brings me back... I was doing this exact sort of stuff at the turn of the century, although admittedly in C - not C++ - and using/linking to the Delphi CGI library.
CGI in 2018 seems a bit passé...
- floatboth 9y agoActually, this new hip function-as-a-service thing feels a lot like CGI/inetd… well, at least in terms of not keeping the server process up all the time, only when it's used. To combine "only running when necessary" and "not restarting for every request when there's a lot of requests", I made a thing: https://github.com/myfreeweb/soad https://github.com/myfreeweb/soad — little wrapper listens on a socket, spawns your server with the socket passed in, terminates the server when there were no new connections in a while, rinse, repeat.
- z92 9y agoYou can check inetd which does exactly that and comes preinstalled and pre activated with Linux installations. Or at lest it was common once upon a time. Don't know if it still is. https://en.wikipedia.org/wiki/Inetd https://en.wikipedia.org/wiki/Inetd