I'm currently looking into bringing FastCGI support to Naviserver. In 
principle, FastCGI is specified to support a pool of backends. For your case, 
one would have to implement a FastCGI server, maybe directly in undroidwish, 
which does the marshaling to the respective Tcl scripts.  Would this suit your 
requirements?

Yes, FastCGI is very similar to what I’m describing, and should work.



However, I’m thinking a bit more about ns_proxy and wondering if:

- a given Tcl interpreter launches a new process via exec, connects to its 
STDIN/STDOUT

- feeds the input to the process, returns its output

- but leaves the process running

- so that next time a request comes in, the proxy proc first checks to see if 
it has a running “exec” external process, and if so, just re-uses it.



If that works, then it’s very similar to FastCGI, and likely easier to 
implement, as it’s all Tcl, and not much of it.  The code from

https://github.com/openacs/openacs-core/blob/oacs-5-10/packages/acs-tcl/tcl/proxy-procs.tcl

would just need to be modified a bit.

_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to