On Sunday 17 February 2002 06:31 pm, Titus Brown wrote:
> Hi all,
>
> I spent some time today bashing on a rewrite of the PyWX adapter for
> Webware (which none of you have ever seen, anyway ;). I have some
> questions for y'all.
>
> Some background: PyWX is an embedding of Python in AOLserver, a
> high-performance multi-threaded Web server. The goal of the PyWX
> adapter for Webware is to run an actual ApplicationServer inside of
> PyWX, so that you avoid the latencies of communicating with the
> AppServer.
>
> The main code is below. This code goes in a file that is imported
> once, at the start of the Web server; 'handle' is called once for
> every connection under '/w/' on the server.
There is no other 'format' other than 'CGI'. But we could always add
one if motivated. However, web servers seem to always have that kind of
function you used:
ns_setup.create_cgi_environ()
So it's easy just to ride off of it.
But regarding putting the app server in the web server:
One of the biggest features I implicitly use in Webware is the ability
to restart the app server with no interruption to my users.
This is accomplished because of 2 things.
First, the web server and app server are typically separate processes,
so the web server can stay up even if the app server is not.
Second, the various adapters for WebKit (that live in the web server)
will timeout after X seconds, but retry Y times before giving up on the
app server. I forget what the default X and Y values are; I've never
had to tweak them.
What this adds up to, is that during the day, I can do this on a
production server:
/etc/init.d/webkit stop
cvs upd -dP
/etc/init.d/webkit start
And all that users notice is that requests took a few seconds longer
than usual (and the bug I just fixed is gone).
If the app server lived in the web server, then users would more likely
notice "Cannot connect" messages, although I don't know for sure how it
would go, because I've never tried that approach.
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss