Re: [hackers] [quark] Thoughts on CGI and authentication?

From: Laslo Hunhold <dev_AT_frign.de>
Date: Mon, 26 Oct 2020 08:41:13 +0100

On Sun, 25 Oct 2020 18:00:30 +0300
Platon Ryzhikov <ihummer63_AT_yandex.ru> wrote:

Dear Platon,

> I've recently had an idea that instead of adding support for running
> scripts by HTTP server (which in any case leads to new fork() calls)
> one could use a library providing HTTP server itself while all the
> logic is created separately and is performed using callbacks from
> library main loop. In that case one could attempt to handle dynamic
> (and static using proper callbacks) content within fixed number of
> threads.

there is theoretically no limit to that, but IPC is a difficult thing
here given you are within a chroot. One could think of another
Unix-domain socket (besides the one that would be created with the -U
option) that could be used to "send" and "receive" data, but to be
honest, it really is not withing quark's scope.

Tell me one example where you need CGI which isn't a web forum? To give
an example how you can solve something statically: A comment section
could be built by having a static web server and also a very thin
"handler" that is called when the form is submitted that adds the
comment to a database and updates the static data on the fly. The
advantage of this is that if someone manages to "crash" the
comment-handler or kill the database process or something, the website
is not affected.

Still, maybe I'm missing something here. Please let me know what you
need CGI for!

With best regards

Laslo
Received on Mon Oct 26 2020 - 08:41:13 CET

This archive was generated by hypermail 2.3.0 : Mon Oct 26 2020 - 09:00:36 CET